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