#include <bits/stdc++.h>
using namespace std;
void Suhaib_Sawalha() {
  long long n, dir(0), k;
  cin >> n;
  string s;
  bool ok = true;
  while (n--) {
    cin >> k >> s;
    if (s == "North") {
      dir -= k;
    } else if (s == "South") {
      dir += k;
    } else if (dir == 0 || dir == 20000) {
      ok = false;
    }
    if (dir < 0 || dir > 20000) {
      ok = false;
    }
  }
  if (ok && !dir) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
void Suhaib_Sawalha1() {
  long long t;
  cin >> t;
  while (t--) {
    Suhaib_Sawalha();
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  Suhaib_Sawalha();
  return 0;
}
