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