#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, mcount = 0;
  char mstr[101];
  char s1[10] = "X++";
  char s2[10] = "++X";
  char s3[10] = "X--";
  char s4[10] = "--X";
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> mstr;
    if (strcmp(mstr, s1) == 0 || strcmp(mstr, s2) == 0) {
      mcount++;
    }
    if (strcmp(mstr, s3) == 0 || strcmp(mstr, s4) == 0) {
      mcount--;
    }
  }
  cout << mcount;
}
