#include <bits/stdc++.h>
using namespace std;
const int MIN = 1e3 + 2;
const int MXN = 1e6 + 3;
const int INF = 1e9 + 7;
const double EPS = 1e-9;
const long long LINF = 1e18 + 15;
int n;
int dir;
string st;
int x, y;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> dir >> st;
    if (y == 0 && st != "South") {
      cout << "NO";
      return 0;
    }
    if (y == 20000 && st != "North") {
      cout << "NO";
      return 0;
    }
    if (st == "North") {
      if (y - dir < 0) {
        cout << "NO";
        return 0;
      }
      y -= dir;
    }
    if (st == "South") {
      if (y + dir > 20000) {
        cout << "NO";
        return 0;
      }
      y += dir;
    }
  }
  if (y != 0) {
    cout << "NO";
    return 0;
  }
  cout << "YES";
  return 0;
}
