#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  int sum = 0;
  cin >> n;
  bool ans = true;
  while (n--) {
    string s;
    cin >> k >> s;
    if (s == "North") {
      if (sum - k >= 0) {
        sum -= k;
      } else
        ans = false;
    } else if (s == "South") {
      if (sum + k <= 20000) {
        sum += k;
      } else
        ans = false;
    } else {
      if (k > 0 && (sum == 0 || sum == 20000)) ans = false;
    }
  }
  if (sum != 0) ans = false;
  if (ans)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
