#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
using ll = long long;
unsigned gcd(unsigned a, unsigned b) {
  if (a < b) return gcd(b, a);
  unsigned r;
  while ((r = a % b)) {
    a = b;
    b = r;
  }
  return b;
}
int main() {
  string S;
  cin >> S;
  int sum = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == '+') sum++;
    if (S[i] == '-') sum++;
  }
  cout << sum << endl;
}
