#include <iostream>
using namespace std;
int main(){
int sum = 0;
string input;
for(int i = 0; i < 4; ++i){
cin >> input;
if(input == "++")
sum++;
else
sum--;
}
cout << sum << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKXsKICAgIGludCBzdW0gPSAwOwogICAgc3RyaW5nIGlucHV0OwogICAgZm9yKGludCBpID0gMDsgaSA8IDQ7ICsraSl7CiAgICAgICAgY2luID4+IGlucHV0OwogICAgICAgIGlmKGlucHV0ID09ICIrKyIpCiAgICAgICAgICAgIHN1bSsrOwogICAgICAgIGVsc2UKICAgICAgICAgICAgc3VtLS07CiAgICB9CiAgICBjb3V0IDw8IHN1bSA8PCBlbmRsOwogICAgcmV0dXJuIDA7Cn0=