#include <bits/stdc++.h>
using namespace std;
char s[6], str[4][6] = {"North", "South", "East", "West"};
int n, x, m;
int xx[4] = {-1, 1, 0, 0};
bool flag;
int main() {
  while (~scanf("%d", &n)) {
    x = 0;
    flag = true;
    while (n--) {
      scanf("%d %s", &m, s);
      for (int i = 0; i < 4; i++) {
        if (strcmp(s, str[i]) == 0) {
          if (strcmp(s, "East") == 0 || strcmp(s, "West") == 0)
            if (x % 20000 == 0) flag = false;
          if (x + m * xx[i] < 0 || x + m * xx[i] > 20000) {
            flag = false;
            continue;
          }
          x = x + m * xx[i];
        }
      }
    }
    if (flag && x == 0)
      puts("YES");
    else
      puts("NO");
  }
  return 0;
}
