#include <bits/stdc++.h>
using namespace std;
int n, ans;
string s;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> s;
    if (s == "++X" || s == "X++")
      ans++;
    else
      ans--;
  }
  cout << ans;
  return 0;
}
