#include <bits/stdc++.h>
const long long oo = 1e9;
const long long mod = 95542721;
const long long MAX = 1e9;
const long long ARR = 410;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  int init = -10000, t;
  string s;
  for (long long i = (0); i < (long long)(n); ++i) {
    cin >> t >> s;
    if (init == -10000) {
      if (s != "South") {
        return cout << "NO", 0;
      }
    }
    if (init == 10000) {
      if (s != "North") {
        return cout << "NO", 0;
      }
    }
    if (s == "North") {
      init -= t;
    }
    if (s == "South") {
      init += t;
    }
    if (init < -10000 || init > 10000) return cout << "NO", 0;
  }
  if (init == -10000)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
