#include <bits/stdc++.h>
int main(void) {
  char num[5];
  printf("S : ");
  scanf("%s", num);
  int first = 0;
  for (int i = 0; i < 4; i++) {
    if (num[i] == '+') {
      first++;
    } else {
      first--;
    }
  }
  printf("%d\n", first);
  return 0;
}
