#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int count = 0;
  for (int i = 0; i < 4; ++i) {
    S[i] = '+' ? count += 1 : count -= 1;
  }
  cout << count << endl;
  return 0;
}
