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