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