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

int main () {
  string S;
  cin >> S;
  int number = 0;
  for ( int i = 0; i < N; i++) {
    if ( S.at(i) == "+" ) number++;
    else number--;
  }
  cout << number << endl;
}