#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int pos = 0;
  for (int i = 0; i < n; i++) {
    string dir;
    int d;
    cin >> d >> dir;
    if (dir == "North") {
      pos -= d;
      if (pos < 0) break;
    }
    if (dir == "South") {
      pos += d;
      if (pos > 20000) break;
    }
    if ((dir == "East" or dir == "West") and (pos == 0 or pos == 20000)) {
      pos = -1;
      break;
    }
  }
  if (pos == 0)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
