#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const long long INF = 1000000000000000000LL;
int main() {
  string s;
  cin >> s;
  int ans = 0;
  for (int i = 0; i < (4); i++) {
    if (s[i] == '+')
      ans++;
    else
      ans--;
  }
  cout << (ans) << endl;
  return 0;
}
