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