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