#include <bits/stdc++.h>
using namespace std;

int main() {
  string c;
  cin >> c;
  int res = 0
  for (int i = 0; i < 4; i++) {
    if (c.at(i) == '+') {
      res++;
    }
    else {
      res--;
    }
  }
  cout << res << endl;
}
