#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool trig_n = true, trig_s = false;
  int mer_mem = 0;
  const int mer_l = 2e4;
  for (int i = 1; i <= n; i++) {
    int x;
    string s;
    cin >> x >> s;
    if ((trig_n == true) and (s != "South")) {
      cout << "NO";
      return 0;
    }
    if ((trig_s == true) and (s != "North")) {
      cout << "NO";
      return 0;
    }
    if (s == "South") {
      mer_mem += x;
      if (mer_mem > mer_l) {
        cout << "NO";
        return 0;
      }
    }
    if (s == "North") {
      mer_mem -= x;
      if (mer_mem < 0) {
        cout << "NO";
        return 0;
      }
    }
    if (mer_mem > 0)
      trig_n = false;
    else
      trig_n = true;
    if (mer_mem < mer_l)
      trig_s = false;
    else
      trig_s = true;
  }
  if (mer_mem == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
