#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  int hor = 0, ver = 0;
  for (int i = 0; i < n; i++) {
    int dist;
    string dir;
    cin >> dist >> dir;
    if (dir == "South") {
      ver += dist;
      if (ver > 20000) {
        cout << "NO\n";
        return 0;
      }
    } else if (dir == "North") {
      ver -= dist;
      if (ver < 0) {
        cout << "NO\n";
        return 0;
      }
    } else if (dir == "West") {
      if (ver == 0 || ver == 20000) {
        cout << "NO\n";
        return 0;
      }
    } else {
      if (ver == 0 || ver == 20000) {
        cout << "NO\n";
        return 0;
      }
    }
  }
  if (ver == 0)
    cout << "YES\n" << endl;
  else
    cout << "NO\n";
  return 0;
}
