#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const long long mod = 1e9 + 7;
const int maxn = 1e6 + 5;
char s[maxn];
int main() {
  while (scanf("%s", s)) {
    int n = strlen(s);
    int da = 0;
    for (int i = 0; i < n; ++i)
      if (s[i] == '+')
        da++;
      else
        da--;
    cout << da << endl;
  }
}
