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