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