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