#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx")
using namespace std;
int a, b, c, d, n, m, k;
char str[22];
inline void die(int a) {
  if (a == 1)
    printf("YES\n");
  else
    printf("NO\n");
  exit(0);
}
int main() {
  scanf("%d", &n);
  int second = 0;
  for (int _n((n)-1), i(0); i <= _n; i++) {
    scanf("%d%s", &a, str);
    if (str[0] == 'S') {
      second += a;
      if (second > 20000) die(0);
    } else if (str[0] == 'N') {
      second -= a;
      if (second < 0) die(0);
    } else if (str[0] == 'E' || str[0] == 'W') {
      if (second == 0 || second == 20000) die(0);
    }
  }
  if (second) die(0);
  die(1);
}
