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