#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int x = 0, y = 0, flag = 1;
  for (int i = 0; i < n; i++) {
    int dis;
    char dir[100] = {0};
    scanf("%d%s", &dis, dir);
    if (flag) {
      if (x == 0 && dir[0] != 'S') {
        flag = 0;
        continue;
      } else if (x == 20000 && dir[0] != 'N') {
        flag = 0;
        continue;
      }
      if (dir[0] == 'S') x += dis;
      if (dir[0] == 'N') x -= dis;
      if (x < 0)
        flag = 0;
      else if (x > 20000)
        flag = 0;
    }
  }
  if (x == 0 && flag) {
    printf("YES\n");
  } else
    printf("NO\n");
  return 0;
}
