#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ns = 0, ew = 0, ans = 0, k;
  string s;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> k >> s;
    if (s == "South") {
      ns += k;
    } else if (s == "East") {
      if (ns == 20000 or ns == 0) {
        ans = 1;
        break;
      }
      ew -= k;
    } else if (s == "West") {
      if (ns == 20000 or ns == 0) {
        ans = 1;
        break;
      }
      ew += k;
    } else {
      ns -= k;
    }
    if (ns < 0) {
      ans = 1;
      break;
    } else if (ns > 20000) {
      ans = 1;
      break;
    }
  }
  if (ns == 0 && ans == 0) {
    cout << "YES";
  } else
    cout << "NO";
  return 0;
}
