#include <bits/stdc++.h>
using namespace std;
int N;
int main() {
  cin >> N;
  string s;
  int cur = 0;
  for (int i = 1; i <= N; i++) {
    int tmp;
    cin >> tmp;
    cin >> s;
    if (cur == 0 || cur == 20000) {
      if (s == "East" || s == "West") {
        cout << "NO";
        return 0;
      }
    }
    if (s == "South") {
      if (20000 - cur < tmp) {
        cout << "NO";
        return 0;
      }
      cur += tmp;
    }
    if (s == "North") {
      if (cur < tmp) {
        cout << "NO";
        return 0;
      }
      cur -= tmp;
    }
  }
  if (cur == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
