#include <bits/stdc++.h>
using namespace std;
int adjust(int t) {
  while (t < 0) t += 40000;
  t %= 40000;
  t %= 20000;
  return t;
}
int main() {
  int n, k;
  cin >> n;
  int north = 0;
  string dir;
  int t;
  for (int i = 0; i < n; i++) {
    cin >> t >> dir;
    if (north == 0 && dir != "South") {
      cout << "NO" << endl;
      return 0;
    } else if (north == 20000 && dir != "North") {
      cout << "NO" << endl;
      return 0;
    }
    if (dir == "North")
      north -= t;
    else if (dir == "South")
      north += t;
    if (north < 0 || north > 20000) {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (north != 0)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
}
