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