#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  int answer;
  answer = 0;
  for (int count = 1; count < 5; count = count + 1) {
    if (S[count - 1] == '+') {
      answer = answer + 1;
    } else {
      answer = answer - 1;
    }
  }
  cout << answer << endl;
}
