#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n, p;
  string str;
  cin >> n;
  int ns = 0;
  bool flag = true;
  for (i = 1; i <= n; i++) {
    cin >> p >> str;
    if (ns == 0 && str != "South") flag = false;
    if (ns == 20000 && str != "North") flag = false;
    if (str == "South") ns += p;
    if (str == "North") ns -= p;
    if (ns < 0 || ns > 20000) flag = false;
    if (flag == false) break;
  }
  if (ns != 0) flag = false;
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
