#include <bits/stdc++.h>
int main(void) {
  char str[] = "++++";
  int N = 0;
  for (int i = 0; i < 4; i++) {
    if ('+' == str[i]) {
      N++;
    } else {
      N--;
    }
  }
  printf("%d\n", N);
}
