#include <bits/stdc++.h>
using namespace std;
int main() {
  int cases, x = 0;
  cin >> cases;
  string bit[] = {"++X", "X++"};
  string s;
  while (cases--) {
    cin >> s;
    if (s == bit[0] || s == bit[1])
      x++;
    else
      x--;
  }
  cout << x;
}
