#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[4], cnt;
  for (int i = 0; i < 4; i++) {
    cin >> a[i];
    if (a[i] == '+') {
      cnt++;
    } else {
      cnt--;
    }
  }
  cout << cnt << endl;
}
