#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const long long LINF = 1LL << 61;
const int NIL = -1;
const int MAX = 10000;
const int MOD = 1000000007;
const double pi = 3.141592653589;
int main() {
  string s;
  int ans = 0;
  cin >> s;
  for (int i = 0; i < (4); i++) {
    if (s[i] = '+')
      ans += 1;
    else
      ans -= 1;
  }
  return 0;
}
