#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int add(int x, int y) { return (x + y) % mod; }
int sub(int x, int y) {
  x -= y;
  if (x < 0) x += mod;
  return x;
}
int mult(int x, int y) { return (long long)x * y % mod; }
int main() {
  ios::sync_with_stdio(false);
  int x = 0;
  int maxx = 20000;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int z;
    string dir;
    cin >> z >> dir;
    if (x == maxx && dir != "North" || x == 0 && dir != "South") {
      cout << "NO" << endl;
      return 0;
    }
    if (dir == "North") x -= z;
    if (dir == "South") x += z;
    if (x < 0 || x > maxx) {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (x != 0)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
  return 0;
}
