#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  char S[4];
  int a;
  int b;
  for (int i = 0; i < 4; i++) {
    cin >> S[i];
    if (S[i] == '+') {
      a += 1;
    } else if (S[i] == '-') {
      b += 1;
    }
  }
  cout << a - b << endl;
  return 0;
}
