#include <bits/stdc++.h>
using namespace std;
int main() {
  int x = 0, count = 0;
  cin >> count;
  string str = "";
  for (int i = 0; i < count; ++i) {
    cin >> str;
    if (str.size() == 3) {
      if (str == "++X" || str == "X++")
        x += 1;
      else if (str == "--X" || str == "X--")
        x -= 1;
    }
  }
  cout << x;
  return 0;
}
