#include <bits/stdc++.h>
int main() {
  char a[10];
  int b, n, num = 0, t = 0, k = 1;
  scanf("%d", &n);
  while (n--) {
    memset(a, 0, sizeof(a));
    scanf("%d%s", &b, a);
    if (k == 1) {
      if (a[0] != 'S') {
        printf("NO");
        exit(0);
      }
      k = 0;
    }
    if (num < 0 || num > 20000) {
      printf("NO");
      exit(0);
    }
    if (num == 0) {
      if (a[0] != 'S') {
        printf("NO");
        exit(0);
      }
    }
    if (num == 20000) {
      if (a[0] != 'N') {
        printf("NO");
        exit(0);
      }
    }
    if (a[0] == 'S') {
      if (b > 20000) {
        printf("NO");
        exit(0);
      }
      if (b == 20000) t = 1;
      num += b;
    }
    if (a[0] == 'N') {
      if (b > 20000) {
        printf("NO");
        exit(0);
      }
      if (b == 20000) t = 2;
      num -= b;
    }
  }
  if (num == 0)
    printf("YES");
  else
    printf("NO");
  return 0;
}
