#include <bits/stdc++.h>
long long gcd(long long a, long long b) {
  if (a < b) (a += b, b = a - b, a -= b);
  if (b == 0) return a;
  if (a % b == 0) return b;
  return gcd(b, a % b);
}
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
using namespace std;
signed main() {
  string S;
  long long X = 0;
  cin >> S;
  for (long long i = 0; i < 4; i++) {
    if (S[i] = '+')
      X++;
    else
      X--;
  }
  cout << X;
}
