#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
int main() {
  ll n, posns = 0, posew = 0, t, fg = 1;
  char d[10];
  cin >> n;
  while (n--) {
    scanf("%lld %s", &t, d);
    if (posns == 0 && d[0] != 'S') fg = 0;
    if (posns == 20000 && d[0] != 'N') fg = 0;
    if (d[0] == 'S') {
      posns = (posns + t);
      if (posns > 20000) fg = 0;
    } else if (d[0] == 'N') {
      posns = ((posns - t));
      if (posns < 0) fg = 0;
    } else if (d[0] == 'E')
      posew += t;
    else
      posew -= t;
    if (posns > 20000) posns = 40000 - posns;
  }
  if (posns == 0 && fg)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
