#include <bits/stdc++.h>
using namespace std;

int main(){
  string S;
  int answer;
  answer=0;
  for(count = 1; count <=4; count = count + 1){
    if(S[count-1]=='+'){
      answer = answer+1;
    }else{
      answer = answer-1;
    }
  }
  cout << answer <<  endl;
}