#include <bits/stdc++.h>
using namespace std;
int main() {
  int x = 0;
  char stck[100];
  char stg1[4] = "++X";
  char stg2[4] = "--X";
  char stg3[4] = "X--";
  char stg4[4] = "X++";
  int c1, c2, c3, c4;
  int t;
  cin >> t;
  for (int i = 1; i <= t; i++) {
    cin >> stck;
    c1 = strcmp(stck, stg1);
    c2 = strcmp(stck, stg2);
    c3 = strcmp(stck, stg3);
    c4 = strcmp(stck, stg4);
    if (c1 == 0 || c4 == 0) {
      x++;
    } else {
      x--;
    }
  }
  cout << x << endl;
  return 0;
}
