#include <bits/stdc++.h>
using namespace std;
int dx8[8] = {1, -1, 0, 0, 1, 1, -1, -1};
int dy8[8] = {0, 0, 1, -1, 1, -1, 1, -1};
void file() {}
void fast() {
  std::ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  fast();
  int n;
  cin >> n;
  vector<pair<int, string>> p(n);
  for (int i = 0; i < n; i++) {
    cin >> p[i].first >> p[i].second;
  }
  long long nw = 0;
  for (int i = 0; i < n; i++) {
    if (nw == 0 && p[i].second != "South") {
      cout << "NO" << endl;
      return 0;
    } else if (nw == 20000 && p[i].second != "North") {
      cout << "NO" << endl;
      return 0;
    } else if (p[i].second == "North")
      nw -= p[i].first;
    else if (p[i].second == "South")
      nw += p[i].first;
    if (nw < 0) {
      cout << "NO" << endl;
      return 0;
    }
    if (nw > 20000) {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (nw == 0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
