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