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