#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  long long int length, sum = 0, n, length1, n1;
  long long int total = 20000, to_south = 0;
  bool truK = 1;
  cin >> n;
  n1 = n;
  n--;
  cin >> length >> s;
  length1 = length;
  if (s == "North" || s == "East" || s == "West") {
    sum = 0;
    truK = 0;
  } else if (s == "South") {
    sum = length;
    to_south = length;
    if (n1 == 1) truK = 0;
  }
  if (to_south > total) truK = 0;
  while (n--) {
    cin >> length >> s;
    if (to_south == total || to_south == 0) {
      if (s == "East" || s == "West") truK = 0;
    }
    if (to_south > total) truK = 0;
    if (to_south < 0) truK = 0;
    if (s == "North") {
      sum -= length;
      to_south -= length;
    } else if (s == "South") {
      sum += length;
      to_south += length;
    }
  }
  if (sum == 0 && truK != 0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
