#include <bits/stdc++.h>
using namespace std;
const int MAXN = 60;
const int m = 2e4;
int n, t;
string s;
int in_north;
int in_south = m;
bool solve() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t >> s;
    if ((in_north == 0 && s != "South") || (in_south == 0 && s != "North"))
      return false;
    if (s == "South") {
      in_north += t;
      in_south -= t;
      if (in_north > m) return false;
    } else if (s == "North") {
      in_north -= t;
      in_south += t;
      if (in_south > m) return false;
    }
  }
  return in_north == 0 ? true : false;
}
int main() {
  cout << (solve() ? "YES" : "NO") << endl;
  ;
  return 0;
}
