#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, NS = 0, flag = 1;
  string s;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t >> s;
    if ((NS == 0) && (s != "South")) {
      flag = 0;
      break;
    }
    if ((NS == 20000) && (s != "North")) {
      flag = 0;
      break;
    }
    if (!(NS <= 20000 && NS >= 0)) {
      flag = 0;
      break;
    }
    if (s == "South") NS += t;
    if (s == "North") NS -= t;
  }
  if (NS != 0) flag = 0;
  cout << (flag ? "YES" : "NO") << endl;
  return 0;
}
