#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
void add(int &t, int v, int dir) { t = t + v * dir; }
int main() {
  int n;
  cin >> n;
  int K = 0;
  for (int i = 0; i < n; ++i) {
    int t;
    string dir;
    cin >> t >> dir;
    if ((K == 0 && dir != "South") || (K == 20000 && dir != "North")) {
      return cout << "NO", 0;
    }
    int d = dir == "South" ? 1 : (dir == "North" ? -1 : 0);
    K = K + t * d;
    if (K > 20000 || K < 0) return cout << "NO", 0;
  }
  if (K != 0)
    cout << "NO";
  else
    cout << "YES";
}
