#include <bits/stdc++.h>
int main(void) {
  char c;
  int N = 0;
  while (scanf("%d", &c) != EOF) {
    if (c == '+') {
      N = N + 1;
    } else if (c == '-') {
      N = N - 1;
    }
  }
  printf("%d\n", N);
  return 0;
}
