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