#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[4];
  int res = 0;
  for (int i = 0; i < 4; i++) {
    cin >> s[i];
    if (strcmp(s, "+")) {
      res++;
    } else {
      res--;
    }
  }
  cout << res << endl;
}
