#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, res = 0;
  cin >> n;
  while (n--) {
    string str;
    cin >> str;
    if (str[0] == 'X')
      if (str[1] == '+')
        res++;
      else
        res--;
    else if (str[0] == '+')
      res++;
    else
      res--;
  }
  cout << res;
  return 0;
}
