#include <bits/stdc++.h>
using namespace std;
const long long dx[] = {-1, -1, -1, 0, 1, 1, 1, 0};
const long long dy[] = {-1, 0, 1, 1, 1, 0, -1, -1};
long long n, m, i;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long test = 1;
  while (test--) {
    string N = "North", second = "South", E = "East", W = "West";
    cin >> n;
    bool ans = 1, at_pole = 1;
    long long dist = 0;
    for (i = 0; i < n; i++) {
      string s;
      cin >> m >> s;
      if (at_pole and (s == W or s == E)) {
        ans = 0;
        continue;
      }
      if (s == W or s == E) continue;
      if (s == second)
        dist += m;
      else if (s == N)
        dist -= m;
      at_pole = 0;
      if (dist == 0 or dist == 20000) at_pole = 1;
      if (dist < 0 or dist > 20000) ans = 0;
    }
    if (ans and !dist)
      cout << "YES";
    else
      cout << "NO";
  }
  return 0;
}
