#include <bits/stdc++.h>
using namespace std;
bool br;
long long t, k, n, m, sum, x, y, z, mini, maxi, w, l, a[3];
string s;
void solve() {
  x = y = 0;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> m >> s;
    if (x == 0 && s != "South") br = 1;
    if (x == 20000 && s != "North") br = 1;
    if (s == "North" && x - m < 0) br = 1;
    if (s == "South" && x + m > 20000) br = 1;
    if (s == "North")
      x -= m;
    else if (s == "South")
      x += m;
    else if (s == "East")
      y += m;
    else
      y -= m;
  }
  if (x != 0) br = 1;
  if (br)
    cout << "NO\n";
  else
    cout << "YES\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  solve();
  return 0;
}
