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