#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, d, j, k, n = 0, m;
  string s;
  cin >> s;
  for (i = 0; i < n; i++) {
    if (s[i] == '+')
      n++;
    else
      n--;
  }
  cout << n;
}
