#include <bits/stdc++.h>
int main() {
  char f[4];
  int a;
  while (gets(f)) {
    a = 0;
    for (int i = 1; i <= 4; i++) {
      if (f[i] == '+')
        a++;
      else
        a--;
    }
    printf("%d\n", a);
  }
}
