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