#include <bits/stdc++.h>
using namespace std;
int main() {
  int size;
  int count = 0;
  cin >> size;
  string str;
  for (int i = 0; i < size; i++) {
    cin >> str;
    if (str == "++X" || str == "X++")
      count++;
    else
      count--;
  }
  cout << count;
}
