#include <bits/stdc++.h>
int main() {
  char S1[1];
  char S2[1];
  char S3[1];
  char S4[1];
  int takahashi_num = 0;
  printf("takahashi's number is: %d\n", takahashi_num);
  scanf("%s\n", S1);
  if (strcmp(S1, "+") == 0) {
    takahashi_num++;
  } else {
    takahashi_num--;
  }
  scanf("%s\n", S2);
  if (strcmp(S2, "+") == 0) {
    takahashi_num++;
  } else {
    takahashi_num--;
  }
  scanf("%s\n", S3);
  if (strcmp(S3, "+") == 0) {
    takahashi_num++;
  } else {
    takahashi_num--;
  }
  scanf("%s\n", S4);
  if (strcmp(S4, "+") == 0) {
    takahashi_num++;
  } else {
    takahashi_num--;
  }
  printf("%d\n", takahashi_num);
}
