#include <bits/stdc++.h>
char str1[] = {'X', '+', '+', '\0'};
char str2[] = {'+', '+', 'X', '\0'};
char str3[] = {'X', '-', '-', '\0'};
char str4[] = {'-', '-', 'X', '\0'};
int main() {
  int n, count = 0, i, j;
  char str[5];
  scanf("%d", &n);
  if (n >= 1 && n <= 150) {
    for (i = 0; i < n; i++) {
      scanf("%s", &str);
      int a = strcmp(str1, str);
      int b = strcmp(str2, str);
      int c = strcmp(str3, str);
      int d = strcmp(str4, str);
      if (a == 0 || b == 0) {
        count++;
      } else if (c == 0 || d == 0) {
        count--;
      }
    }
  }
  printf("%d\n", count);
  return 0;
}
