#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x = 0;
  string line;
  cin >> n;
  cin.ignore();
  for (int i = 0; i < n; i++) {
    getline(cin, line);
    if (line.find("++") != string::npos) {
      x++;
    } else if (line.find("--") != string::npos) {
      x--;
    }
  }
  cout << x;
  return 0;
}
