#include <bits/stdc++.h>
using namespace std;
int main() {
  string inp;
  cin >> inp;
  int ans = 0;
  for (int i = 0; i < inp.size(); i++) {
    if (inp[i] == '-')
      ans--;
    else if (inp[i] == '+')
      ans++;
  }
  cout << ans << endl;
  return 0;
}
