#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x = 20000, y = 0;
  bool ok = true;
  for (int i = 0; i < n; ++i) {
    int t;
    string s;
    cin >> t >> s;
    if (s == "North") {
      if (t > y) {
        ok = false;
      } else {
        y -= t;
      }
    } else if (s == "South") {
      if (t + y > 20000) {
        ok = false;
      } else {
        y += t;
      }
    } else if (s == "West") {
      if (y == 0 || y == 20000) {
        ok = false;
        continue;
      }
      if (t > x) {
        x = 40000 - (abs(x - t) % 40000);
      } else {
        x -= t;
      }
    } else if (s == "East") {
      if (y == 0 || y == 20000) {
        ok = false;
        continue;
      }
      x = (x + t) % 40000;
    }
  }
  if (!ok) {
    cout << "NO" << endl;
  } else {
    if (y == 0) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
