using namespace std;

int main(){
  vector<char> s(4);
  for(int i=0;i<4;i++){
    cin >> s.at(i);
  }
  int count1=0;
  int count2=0;
   for(int i=0;i<4;i++){
     if(s.at(i)=='+'){
       count1++;
     }else{
       count2++;
     }}
     cout << count1-count2 << endl;
}