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