#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long ans = 0;
  string x1 = "++X";
  string x2 = "X++";
  for (long long i = 0; i < n; i++) {
    string k;
    cin >> k;
    if (k == x1 || k == x2) {
      ans++;
    } else {
      ans--;
    }
  }
  cout << ans;
}
