#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  long long ans = 0;
  for (long long i = 0; i < S.size(); ++i) {
    if (S[i] = '+') ++ans;
    if (S[i] = '-') --ans;
  }
  cout << ans << endl;
}
