#include <bits/stdc++.h>
char dir[100];
int main() {
  bool f;
  int n, l, g;
  while (scanf("%d", &n) == 1) {
    g = 0;
    f = false;
    while (n--) {
      scanf("%d %s", &l, dir);
      if (!f) {
        if (strcmp(dir, "South") == 0) {
          g += l;
          if (g > 20000) f = true;
        } else if (strcmp(dir, "North") == 0) {
          g -= l;
          if (g < 0) f = true;
        } else if (g == 0 || g == 20000)
          f = true;
      }
    }
    if (g || f)
      printf("NO\n");
    else
      printf("YES\n");
  }
  return 0;
}
