#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans = 0;
  cin >> n;
  int a[150][3];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 3; j++) {
      char temp;
      cin >> temp;
      a[i][j] = temp;
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 2; j++) {
      if (j == 1) {
        if ((a[i][j] && a[i][j + 1] == 45) || (a[i][j] && a[i][j - 1] == 45))
          ans--;
        if ((a[i][j] && a[i][j + 1] == 43) || (a[i][j] && a[i][j - 1] == 43))
          ans++;
        if (a[i][j] == 'X') ans = ans;
      }
    }
  }
  cout << ans;
  return 0;
}
