#include <bits/stdc++.h>
int main() {
  int n, m, i, j, k;
  char s[1000];
  while (~scanf("%s", s)) {
    n = 0;
    k = strlen(s);
    for (i = 0; i < k; i++) {
      if (s[i] == '+') {
        n++;
      } else if (s[i] == '-') {
        n--;
      }
    }
    printf("%d\n----", n);
  }
  return 0;
}
