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