#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<string, int> m;
  int flag = 1;
  while (n--) {
    string x;
    int y;
    cin >> y >> x;
    if (flag == 2 && x != "North") {
      cout << "NO";
      return 0;
    }
    if (flag == 1 && x != "South") {
      cout << "NO";
      return 0;
    }
    if (m["NS"] > 20000 || m["NS"] < 0) {
      cout << "NO";
      return 0;
    }
    flag = 0;
    if (x == "South")
      m["NS"] += y;
    else if (x == "North")
      m["NS"] -= y;
    if (m["NS"] == 0)
      flag = 1;
    else if (m["NS"] == 20000)
      flag = 2;
  }
  if (m["NS"] != 0)
    cout << "NO";
  else
    cout << "YES";
  return 0;
}
