#include <bits/stdc++.h>
int main() {
  int n = 0;
  char a[256];
  char b1[] = "+";
  char b2[] = "-";
  for (int i; i < 4; i++) {
    scanf("%s", &a[0]);
    if (strcmp(a, b1) == 0) {
      n++;
    } else if (strcmp(a, b2) == 0) {
      n--;
    }
  }
  printf("%d", n);
}
