#include <bits/stdc++.h>
using namespace std;
void urmi() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  long long n, x, pos = 0;
  cin >> n;
  while (n--) {
    string s;
    cin >> x >> s;
    if (pos == 0 && s != "South" || pos == 20000 && s != "North") {
      cout << "NO" << endl;
      return 0;
    }
    if (s == "North") {
      if (pos > 0) pos -= x;
    } else if (s == "South") {
      if (pos < 20000) pos += x;
    }
    if (pos < 0 || pos > 20000) {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (pos != 0) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  return 0;
}
