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