#include <bits/stdc++.h>
using namespace std;
string s;
int n;
int d = 0;
int t;
bool solve() {
  for (int i = 0; i < n; i++) {
    cin >> t;
    cin >> s;
    if (s == "East" || s == "West") {
      if (d == 20000 || d == 0) return false;
    } else {
      if (d == 20000 && s == "South") return false;
      if (d == 0 && s == "North") return false;
      if (s == "North")
        d = d - t;
      else
        d = d + t;
      if (d < 0 || d > 20000) return false;
    }
  }
  return (!d);
}
int main() {
  cin >> n;
  if (solve())
    cout << "YES";
  else
    cout << "NO";
}
