#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[1000];
  char a[10000];
  long long int f = 1, n, tot = 0, i, j;
  int d, k;
  scanf("%d", &n);
  char c;
  do {
    c = getchar();
  } while (c != '\n');
  for (i = 0; i < n; i++) {
    gets(a);
    sscanf(a, "%d %s", &d, s);
    if (tot == 0) {
      if (s[0] != 'S') f = 0;
    } else if (tot == 20000) {
      if (s[0] != 'N') f = 0;
    }
    if (s[0] == 'S')
      tot += d;
    else if (s[0] == 'N')
      tot -= d;
    if (tot < 0 || tot > 20000) f = 0;
  }
  if (tot != 0) f = 0;
  if (f)
    printf("YES");
  else
    printf("NO");
  return 0;
}
