#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, j, x = 0;
  char c[10];
  cin >> n;
  while (n--) {
    cin >> c;
    for (i = 0; i < strlen(c); i++) {
      if (c[i] == '+' and c[i + 1] == '+' and c[i + 2] == 'X') {
        i += 2;
        ++x;
        continue;
      } else if (c[i] == 'X' and c[i + 1] == '+' and c[i + 2] == '+') {
        i += 2;
        x++;
        continue;
      } else if (c[i] == 'X' and c[i + 1] == '-' and c[i + 2] == '-') {
        i += 2;
        x--;
        continue;
      } else if (c[i] == '-' and c[i + 1] == '-' and c[i + 2] == 'X') {
        i += 2;
        --x;
        continue;
      }
    }
  }
  cout << x << endl;
  return 0;
}
