#include <bits/stdc++.h>
int main() {
  int c, count = 0;
  while ((c = getchar()) != NULL) {
    if (c == '+') {
      count++;
    } else if (c == '-') {
      count--;
    }
  }
  printf("%d", count);
  return 0;
}
