#include <bits/stdc++.h>
int main() {
  int x = 0, n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    char oper[100];
    scanf("%s", oper);
    int a = strcmp(oper, "++X"), b = strcmp(oper, "X++");
    if (a == 0 || b == 0) {
      x++;
    } else {
      x--;
    }
  }
  printf("%d", x);
  return 0;
}
