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