#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(int argc, const char* argv[]) {
  string s;
  cin >> s;
  int cnt = 0;
  for (int i = 0; s.size(); i++) {
    if (s[i] == '+') {
      cnt++;
    } else {
      cnt--;
    }
  }
  cout << cnt << endl;
  return 0;
}
