#include <bits/stdc++.h>
int main() {
  int y = 10000;
  int introno;
  bool dirty = false;
  std::cin >> introno;
  for (int i = 0; i != introno; i++) {
    int kms;
    std::string dir;
    std::cin >> kms >> dir;
    if (dir == "North") {
      y += kms;
    } else if (dir == "South") {
      y -= kms;
    } else {
      if (y == 10000 || y == -10000) {
        dirty = true;
        break;
      }
    }
    if (y < -10000 || y > 10000) {
      dirty = true;
      break;
    }
  }
  if (y != 10000) dirty = true;
  std::cout << (!dirty ? "YES\n" : "NO\n");
}
