#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[4];
  int n, i = 0, x = 0;
  cin >> n;
  for (i; i < n; i++) {
    cin >> s;
    cout << endl;
    if (strchr(s, '+') != 0)
      x = x + 1;
    else
      x = x - 1;
  }
  cout << x << endl;
}
