#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 1, 0, -1, -1, -1, 1, 1};
int dy[] = {1, 0, -1, 0, 1, -1, 1, -1};
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int now = 0;
  bool ok = 1;
  while (n--) {
    int x;
    cin >> x;
    string s;
    cin >> s;
    if (now == 0 && s != "South") ok = 0;
    if (now == 20000 && s != "North") ok = 0;
    if (s == "North")
      now -= x;
    else if (s == "South")
      now += x;
    if (now < 0 || now > 20000) ok = 0;
  }
  if (now != 0) ok = 0;
  ok ? cout << "YES" : cout << "NO";
  return 0;
}
