#include <bits/stdc++.h>
using namespace std;
int main(void) {
  char a, i;
  int sum = 0;
  while (scanf("%c", &a) == 1) {
    if (a == '+') {
      sum++;
    } else {
      sum--;
    }
  }
  cout << sum << endl;
  return 0;
}
