#include <bits/stdc++.h>
using namespace std;
const double eps = 0.0000001;
const int inf = 1e9 + 7;
const int maxn = 1e6 + 5;
int t[maxn], d[maxn];
int main() {
  int n;
  scanf("%d", &n);
  int sum = 0, flag = 1;
  for (int i = 1; i <= n; i++) {
    char str[100];
    scanf("%d%s", &t[i], str);
    if (str[0] == 'S') {
      sum += t[i];
    } else if (str[0] == 'E' || str[0] == 'W')
      d[i] = 0;
    else if (str[0] == 'N') {
      sum -= t[i];
    }
    if (sum < 0 || sum > 20000 ||
        (str[0] == 'W' && (sum == 0 || sum == 20000)) ||
        (str[0] == 'E' && (sum == 0 || sum == 20000))) {
      flag = 0;
    }
  }
  if (sum) flag = 0;
  if (flag)
    printf("YES\n");
  else
    printf("NO\n");
}
