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