#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N = 4;
  int num = 0;
  char s;
  while (scanf("%s", &s) != EOF) {
    if (s == '+') {
      num += 1;
    } else if (s == '-') {
      num -= 1;
    }
  }
  cout << num;
}
