#include <bits/stdc++.h>
using namespace std;
long long n, d, c;
string s;
int main() {
  cin >> n;
  while (n--) {
    cin >> d >> s;
    if (c == 0) {
      if (s == "East" || s == "West" || s == "North") {
        cout << "NO";
        return 0;
      } else {
        c += d;
      }
    } else if (c == 20000) {
      if (s == "East" || s == "West" || s == "South") {
        c -= d;
        cout << "NO";
        return 0;
      } else
        c -= d;
    } else if (s == "North") {
      if (d <= 20000) {
        c -= d;
      } else {
        cout << "NO";
        return 0;
      }
    } else if (s == "South") {
      if (d <= 20000) {
        c += d;
      } else {
        cout << "NO";
        return 0;
      }
    }
    if (c < 0 || c > 20000) {
      cout << "NO";
      return 0;
    }
  }
  if (c == 0) {
    cout << "YES";
  } else
    cout << "NO";
}
