#include <bits/stdc++.h>
using namespace std;
int main() {
  int x = 0;
  int n;
  string s;
  cin >> n;
  if (n >= 1 && n <= 150) {
    for (int i = 0; i < n; i++) {
      cin >> s;
      if (s == "++X" || s == "X++" || s == "++x" || s == "x++")
        x += 1;
      else if (s == "--X" || s == "X--" || s == "x--" || s == "--x")
        x -= 1;
      else
        break;
    }
    cout << x;
  }
  return 0;
}
