#include <bits/stdc++.h>
using namespace std;
int main() {
  char c[4];
  int sum = 0;
  while (scanf("%s", &c) != EOF) {
    int len = strlen(c);
    for (int i = 0; i < len; i++) {
      if (c[i] == '+') {
        sum++;
      } else if (c[i] == '-') {
        sum--;
      }
    }
    cout << sum << endl;
  }
}
