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