#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000007;
const int maxn = 100005;
int getint() {
  int r = 0;
  bool b = true;
  char c = getchar();
  while ('0' > c || c > '9') {
    if (c == '-') b = false;
    c = getchar();
  }
  while ('0' <= c && c <= '9') {
    r = r * 10 + (c - '0');
    c = getchar();
  }
  if (b) return r;
  return -r;
}
char str[100];
int main() {
  int n = getint(), cur = 0;
  for (int i = 0; i < n; ++i) {
    int x = getint();
    scanf("%s", str);
    if (cur == 0 && str[0] != 'S') {
      puts("NO");
      return 0;
    }
    if (cur == 20000 && str[0] != 'N') {
      puts("NO");
      return 0;
    }
    if (str[0] == 'N') cur -= x;
    if (str[0] == 'S') cur += x;
    if (cur < 0 || cur > 20000) {
      puts("NO");
      return 0;
    }
  }
  if (cur != 0) {
    puts("NO");
    return 0;
  }
  puts("YES");
  return 0;
  fclose(stdin);
  fclose(stdout);
  return 0;
}
