#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string str;
  while (scanf("%d", &n) == 1) {
    int v = 0;
    for (int i = 1; i <= n; i++) {
      cin >> str;
      if (str == "X++" || str == "++X")
        v++;
      else
        v--;
    }
    printf("%d\n", v);
  }
  return 0;
}
