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