#include <bits/stdc++.h>
using namespace std;
int n, k;
int main() {
  scanf("%d", &n);
  k = 0;
  bool flag = true;
  for (; n; n--) {
    int dist;
    string dir;
    scanf("%d", &dist);
    cin >> dir;
    if (dir == "North") {
      k -= dist;
      if (k < 0) {
        flag = false;
        break;
      }
    } else if (dir == "South") {
      k += dist;
      if (k > 20000) {
        flag = false;
        break;
      }
    } else if (k == 0 || k == 20000) {
      flag = false;
      break;
    }
  }
  if (k != 0) flag = false;
  if (flag)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
