#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<char> S(4);
  int x = 0;
  for (int i = 0; i < 4; i++) {
    if (S.at(i) == '+')
      x++;
    else
      x--;
  }
  cout << x << endl;
}
