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