#include <bits/stdc++.h>
using namespace std;
int n, ans;
char c[50];
int main() {
  scanf("%d", &n);
  int south = 0;
  int num;
  bool flag = true;
  for (int i = 1; i <= n; i++) {
    scanf("%d %s", &num, c);
    switch (c[0]) {
      case 'N':
        south -= num;
        if (south > 20000 || south < 0) {
          flag = false;
          break;
        }
        break;
      case 'S':
        south += num;
        if (south > 20000 || south < 0) {
          flag = false;
          break;
        }
        break;
      default:
        if (south == 0 || south == 20000) {
          flag = false;
          break;
        }
        break;
    }
  }
  if (south != 0) flag = false;
  if (flag)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
