#include <bits/stdc++.h>
int main() {
  int x = 1;
  char takahashi[5];
  printf("入力：");
  scanf("%s", takahashi);
  for (int i = 0; i < 4; i++) {
    if (takahashi[i] == '+') {
      x++;
    } else if (takahashi[i] == '-') {
      x--;
    }
  }
  printf("%d", x);
  return 0;
}
