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