#include <bits/stdc++.h>
using namespace std;
int main() {
  char *s;
  cin >> s;
  int count = 0;
  for (int i = 0; i < 4; i++) {
    if (s[i] == '-') {
      count -= 1;
    } else {
      count += 1;
    }
  }
  cout << count;
  return 0;
}
