#include <bits/stdc++.h>
int main() {
  int t, x = 0;
  scanf("%d", &t);
  while (t--) {
    char c[10];
    scanf("%s", c);
    for (int j = 0; j < strlen(c); j++) {
      if (c[j] == '+') x++;
      if (c[j] == '-') x--;
    }
  }
  printf("%d", x / 2);
  return 0;
}
