#include<iostream>
#include<algorithm>

using namespace std;

int main(){
  string S;
  string i;
  int t = 0;
  cin >> S;
  for (i = S.begin(); i != S.end(); i++){
    if(i = "+"){
      t = t + 1;
    }
    else {
      t = t - 1;
    }
  }
  cout << t << endl;
}