#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e2 + 10;
int num;
int main() {
  int n;
  cin >> n;
  num = 0;
  while (n--) {
    string s;
    cin >> s;
    if (s == "++X" || s == "X++")
      num++;
    else
      num--;
  }
  cout << num << endl;
  return 0;
}
