#include <bits/stdc++.h>
using namespace std;
int n, d, l = 0;
string dir;
bool bac = true, nam = false;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> d >> dir;
    if (bac && dir != "South") {
      cout << "NO";
      return 0;
    }
    if (nam && dir != "North") {
      cout << "NO";
      return 0;
    }
    if (dir == "North") {
      l -= d;
      if (l < 0) {
        cout << "NO";
        return 0;
      }
    } else if (dir == "South") {
      l += d;
      if (l > 20000) {
        cout << "NO";
        return 0;
      }
    }
    if (l == 0)
      bac = true;
    else
      bac = false;
    if (l == 20000)
      nam = true;
    else
      nam = false;
    if (i == n)
      if (bac)
        cout << "YES";
      else
        cout << "NO";
  }
  return 0;
}
