#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long a;
  string b;
  cin >> n;
  cin >> ws;
  int d = 1;
  int disx = 0, disy = 0;
  int c[n];
  string d1[n];
  for (int i = 0; i < n; i++) {
    cin >> ws;
    cin >> c[i];
    cin >> ws;
    cin >> d1[i];
  }
  for (int i = 0; i < n; i++) {
    int a = c[i];
    string b = d1[i];
    if (d == 1) {
      if (b != "South") {
        cout << "NO"
             << "\n";
        return 0;
      }
    }
    if (d == 0) {
      if (b != "North") {
        cout << "NO"
             << "\n";
        return 0;
      }
    }
    if (b == "South") {
      disx += a;
      if (disx > 20000) {
        cout << "NO"
             << "\n";
        return 0;
      }
    } else {
      if (b == "North") {
        disx -= a;
      } else {
        if (b == "West")
          disy += a;
        else
          disy -= a;
      }
    }
    if (disx < 0) {
      cout << "NO"
           << "\n";
      return 0;
    }
    if (disx >= 40000) {
      disx = disx - ((40000) * (disx / 40000));
    }
    if (disx == 20000) {
      d = 0;
    } else {
      if (disx == 0 || disx == 40000) {
        disx = 0;
        d = 1;
      } else
        d = -1;
    }
  }
  if (disx == 0)
    cout << "YES"
         << "\n";
  else
    cout << "NO"
         << "\n";
  return 0;
}
