#include <bits/stdc++.h>
using namespace std;
const string DIR_N = "North";
const string DIR_S = "South";
const string DIR_W = "West";
const string DIR_E = "East";
int main() {
  uint64_t k = 0;
  string tmp_dir = "";
  uint64_t tmp_distance = 0;
  int64_t distance_to_north = 0;
  cin >> k;
  for (uint64_t i = 0; i < k; i++) {
    cin >> tmp_distance >> tmp_dir;
    if ((distance_to_north == 0) && (tmp_dir != DIR_S)) {
      cout << "NO";
      return 0;
    }
    if ((distance_to_north == 20000) && (tmp_dir != DIR_N)) {
      cout << "NO";
      return 0;
    }
    if (tmp_dir == DIR_N) {
      distance_to_north -= tmp_distance;
      if (distance_to_north < 0) {
        cout << "NO";
        return 0;
      }
    } else if (tmp_dir == DIR_S) {
      distance_to_north += tmp_distance;
      if (distance_to_north > 20000) {
        cout << "NO";
        return 0;
      }
    }
  }
  if (distance_to_north == 0) {
    cout << "YES";
    return 0;
  } else {
    cout << "NO";
    return 0;
  }
}
