#include <bits/stdc++.h>
using namespace std;
int main() {
  int length, x = 0, count = 0;
  string s = "";
  cin >> length;
  while (length--) {
    cin >> s;
    count += (s.find("--") != string::npos) ? -1 : 1;
  }
  cout << count;
  return 0;
}
