#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x = 0, i = 0;
  char opt[3];
  cin >> n;
  if (n < 1 || n > 150) return 0;
  while (i < n) {
    cin >> opt;
    if (strcmp(opt, "++X") == 0 || strcmp(opt, "X++") == 0)
      x++;
    else if (strcmp(opt, "X--") == 0 || strcmp(opt, "--X") == 0)
      x--;
    i++;
  }
  cout << x;
  return 0;
}
