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