#include <bits/stdc++.h>
using namespace std;
int num;
int main() {
  ios::sync_with_stdio(false);
  cin >> num;
  int temp(num);
  int h(0);
  bool flag = true;
  while (temp--) {
    int t;
    string dir;
    cin >> t >> dir;
    if (h < 0 || h > 20000) {
      flag = false;
      break;
    }
    if (h == 20000) {
      if (dir != "North") {
        flag = false;
        break;
      }
    }
    if (h == 0) {
      if (dir != "South") {
        flag = false;
        break;
      }
    }
    if (dir == "North") h -= t;
    if (dir == "South") h += t;
  }
  if (flag && h == 0)
    cout << "YES";
  else
    cout << "NO";
}
