#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long a, flag = 0, y = 0;
  string s;
  cin >> n;
  for (__typeof(n) i = 0; i < n; i++) {
    cin >> a >> s;
    if ((y == 0 && s != "South") || (y == 20000 && s != "North")) flag = 1;
    if ((s == "South" &&
         ((y < 20000 && y + a > 20000) || (y > 20000 && y - a < 20000))) ||
        (s == "North" &&
         ((y < 20000 && y < a) || (y > 20000 && y + a > 40000))))
      flag = 1;
    if (s == "South") {
      y = (y - a + 40000) % 40000;
    } else if (s == "North")
      y = (y + a) % 40000;
  }
  if (y) flag = 1;
  cout << (flag ? "NO\n" : "YES\n");
  cin.get();
  cin.get();
  return 0;
}
