#include <bits/stdc++.h>
const int N = 1e5 + 7;
const int INF = 1e9 + 7;
using namespace std;
int n, i, ans, kol, k, x, now;
string st;
void out() {
  cout << "NO";
  exit(0);
}
int main() {
  cin >> n;
  for (i = 0; i < n; ++i) {
    cin >> x >> st;
    if (st == "South") {
      now += x;
      if (now > 20000) out();
    } else if (st == "North") {
      now -= x;
      if (now < 0) out();
    } else {
      if (now == 0 || now == 20000) out();
    }
  }
  if (now != 0)
    out();
  else
    cout << "YES";
}
