#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x = 0, i;
  char s[4], str1[4] = "++X", str2[4] = "X++", str3[4] = "X--", str4[4] = "--X";
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> s;
    if (s[1] == '+') {
      x++;
    }
    if (s[1] == '-') {
      x--;
    }
  };
  cout << x;
}
