#include <bits/stdc++.h>
using namespace std;
int main() {
  char dd[10000][10];
  char fx[4][10] = {"North", "South", "West", "East"};
  int lc[10000], m, n = 0, sum = 0;
  while (cin >> m) {
    for (n; n < m; n++) {
      cin >> lc[n] >> dd[n];
    }
    int t = strcmp(dd[0], fx[1]);
    for (n = 0; n < m; n++) {
      if (t != 0) break;
      if (strcmp(dd[n], fx[1]) == 0) {
        sum += lc[n];
      }
      if (sum > 20000) {
        break;
      }
      if (strcmp(dd[n], fx[0]) == 0) {
        sum -= lc[n];
      }
      if (sum < 0) {
        break;
      }
      if (sum == 20000) {
        if (strcmp(dd[n + 1], fx[0]) != 0) break;
      }
      if (sum == 0 && n + 1 != m) {
        if (strcmp(dd[n + 1], fx[1]) != 0) {
          t = 1;
          break;
        }
      }
    }
    if (t != 0)
      cout << "NO";
    else {
      if (sum == 0)
        cout << "YES";
      else
        cout << "NO";
    }
  }
  return 0;
}
