#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int z = 0;
  int corx = 0, cory = 20000;
  for (int i = 0; i < n; i++) {
    int x;
    string s;
    cin >> x >> s;
    if (corx == 0 && s != "South" && z == 0) {
      cout << "NO" << endl;
      z = 1;
    }
    if (corx == 20000 && s != "North" && z == 0) {
      cout << "NO" << endl;
      z = 1;
    }
    if (s == "North") {
      corx -= x;
      if (corx < 0 && z == 0) {
        cout << "NO" << endl;
        z = 1;
      }
    }
    if (s == "South") {
      corx += x;
      if (corx > 20000 && z == 0) {
        cout << "NO" << endl;
        z = 1;
      }
    }
    if (s == "East") {
      cory += x;
    }
    if (s == "West") {
      cory -= x;
    }
    corx = corx % 40001;
    cory = cory % 40001;
  }
  if (z == 1) {
    return 0;
  }
  if (corx == 0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
