#include <iostream>
#include <string>
#include <vector>


using namespace std;

int main(){
  string S;
  cin << S;
  int p = 0;
  for(int i = 0; i < 4; i++){
    if(S[i] == '+'){
      p++;
    }else{
      p--;
    }
  }
  cout << p << endl;

  return 0;
}
