#include <bits/stdc++.h>
using namespace std;
int main() {
  string x;
  int cnt = 1, lin = 1;
  cin >> x;
  lin = x.size();
  for (int i = 1; i <= lin; i++) {
    if (x[i] == '+')
      cnt++;
    else if (x[i] == '-')
      cnt--;
  }
  cout << cnt;
}
