#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[5];
  while (gets(s) != NULL) {
    int x = 0;
    for (int i = 0; s[i]; i++) {
      if (s[i] == '+')
        x++;
      else if (s[i] == '-')
        x--;
    }
    printf("%d\n", x);
  }
  return 0;
}
