#include <bits/stdc++.h>
using namespace std;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  int count = 0;
  for (int i = 0; i < 4; i++) {
    if (s[i] == '+') {
      count++;
    } else {
      count--;
    }
  }
  cout << count << '\n';
}
