#include <bits/stdc++.h>
using namespace std;
int n;
int x, y;
bool read() {
  if (!(cin >> n)) return false;
  return true;
}
void solve() {
  int k;
  x = 0;
  y = 0;
  string s;
  for (int i = 0; i < n; i++) {
    cin >> k >> s;
    if (x == 0 && y == 0 && s != "South") {
      cout << "NO";
      return;
    } else if (x == 0 && y == 20000 && s != "North") {
      cout << "NO";
      return;
    }
    if (s == "South") {
      if (y + k > 20000) {
        cout << "NO";
        return;
      }
      y += k;
    } else if (s == "North") {
      if (y - k < 0) {
        cout << "NO";
        return;
      }
      y -= k;
    }
  }
  if (x == 0 && y == 0) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
int main() {
  read();
  solve();
  return 0;
}
