#include <bits/stdc++.h>
int main() {
  int i, k, a, b, c, sum;
  char s[4];
  while (~scanf("%s", s)) {
    sum = 0;
    b = 0;
    a = 0;
    for (i = 1; i <= 4; i++) {
      if (s[i] == '+') {
        a++;
      }
      if (s[i] == '-') {
        b--;
      }
    }
    sum = a + b;
    printf("%d\n", sum);
  }
  return 0;
}
