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