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