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