#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, X = 0;
  string a;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a;
    if (a == "++X" || a == "X++")
      X++;
    else if (a == "--X" || a == "X--")
      X--;
  }
  cout << X << endl;
  return 0;
}
