#include <bits/stdc++.h>
using namespace std;
int main() {
  int c = 0, d = 0;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 45) {
      c++;
    }
    if (s[i] == 43) {
      d++;
    }
  }
  cout << d - c << endl;
}
