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