#include <bits/stdc++.h>
int main(void) {
  int value = 0;
  char S[4];
  if (fgets(S, 5, stdin) == NULL || S[0] == '\n') {
    return EXIT_FAILURE;
  }
  for (int i = 0; i < 4; i++) {
    if (S[i] == '+') {
      value++;
    } else if (S[i] == '-') {
      value--;
    }
  }
  printf("%d", value);
  return EXIT_SUCCESS;
}
