#include <bits/stdc++.h>
using namespace std;
int odd[5] = {1, 3, 5, 7, 9};
int evn[5] = {2, 4, 6, 8, 0};
pair<int, string> a[20000 + 10];
int main() {
  int n;
  cin >> n;
  long long int no = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a[i].first >> a[i].second;
  }
  for (int i = 1; i <= n; i++) {
    if (no == 0 && a[i].second != "South") {
      cout << "NO";
      return 0;
    }
    if (no == 20000 && a[i].second != "North") {
      cout << "NO";
      return 0;
    }
    if (a[i].second == "South") no += a[i].first;
    if (no > 20000) {
      cout << "NO";
      return 0;
    }
    if (a[i].second == "North") no -= a[i].first;
    if (no < 0) {
      cout << "NO";
      return 0;
    }
  }
  if (no == 0)
    cout << "YES";
  else
    cout << "NO";
}
