#include<iostream>
#include<string>

using namespace std;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

  cin >> S;

  int result = 0;
  for (int i = 0; i < 4; ++i) {
    if (S[i] == '+') ++result;
    else --result;
  }

  cout << result << endl;

	return 0;
}