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