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