#include <bits/stdc++.h>
using namespace std;
const int MOD = 40000;
int n;
int t[111];
string dir[111];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  int x = 0, y = 0;
  for (int i = 0; i < n; ++i) {
    cin >> t[i] >> dir[i];
    if (x == 0 && dir[i] != "South") {
      cout << "NO";
      return 0;
    }
    if ((x == MOD / 2 || x == -MOD / 2) && dir[i] != "North") {
      cout << "NO";
      return 0;
    }
    if (dir[i] == "South") x = x + t[i];
    if (dir[i] == "North") x = x - t[i];
    if (x < 0 || x > MOD / 2) {
      cout << "NO";
      return 0;
    }
  }
  if (x != 0)
    cout << "NO";
  else
    cout << "YES";
  return 0;
}
