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