#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, ct = 0, l;
  string s;
  bool test = true;
  cin >> n;
  while (n--) {
    cin >> l >> s;
    if (s == "South") {
      if ((ct + l) > 20000) test = false;
      ct = (l + ct) % 40000;
    } else if (s == "North") {
      if (ct - l < 0) test = false;
      ct = (ct - l) % 40000;
      if (ct < 0) ct = 0;
    } else if (s == "West") {
      if (ct == 0 || ct == 20000) test = false;
    } else if (s == "East") {
      if (ct == 0 || ct == 20000) test = false;
    }
  }
  if (test && ct == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
