#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int count = 0;
  string S;
  cin >> S;
  vector<char> c[4];
  for(int i = 0; i < 4; i++){
    s = S.at(i);
    if (s == '+'){
      count += 1;
    }
    else{
      count -= 1;
    }
  }
  cout << count << endl;
}