#include <bits/stdc++.h>
using namespace std;
int mood = 40000;
int main() {
  int n;
  while (cin >> n) {
    string str;
    int ns = 0;
    int ss = 0;
    bool f = 0;
    for (int i = 0; i < n; i++) {
      cin >> ss >> str;
      if (f == 0) {
        if (str == "South") {
          if (ns + ss > 20000) {
            f = 1;
          }
          ns += ss;
        } else if (str == "East") {
          if (ns == 0 || ns == 20000) {
            f = 1;
          }
        } else if (str == "North") {
          if (ns - ss < 0) f = 1;
          ns -= ss;
        } else {
          if (ns == 0 || ns == 20000) {
            f = 1;
          }
        }
      }
    }
    if (ns != 0) f = 1;
    if (f == 0)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
