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