#include <iostream>
using namespace std;

int main() {
  char c
  int num = 0;
  for (int i = 0; i < 4; i++) {
    cin >> c;
    if (c == '-') {
      num--;
    } else if (c == '+') {
      num++;
    }
  }
  cout << num << endl;
  
  return 0;
}
  
