#include <bits/stdc++.h>
using namespace std;
int main() {
  enum { N = 20000 };
  int n, flag = 0, t;
  string dir;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    if (flag < 0) continue;
    cin >> t >> dir;
    if (dir == "South") {
      if (flag + t > N) {
        flag = -1;
        break;
      }
      flag += t;
      continue;
    }
    if (dir == "North") {
      if (flag - t < 0) {
        flag = -1;
        break;
      }
      flag -= t;
    }
    if (dir == "East" || dir == "West") {
      if (!flag || flag == N) {
        flag = -1;
        break;
      }
    }
  }
  if (flag)
    cout << "NO";
  else
    cout << "YES";
  return 0;
}
