#include <bits/stdc++.h>
using namespace std;
int main() {
  int sum = 0;
  string s;
  cin >> s;
  for (int i = 0; i < 4; ++i) {
    if (s[i] == '+')
      sum++;
    else
      sum -= 1;
  }
  return 0;
}
