#include <bits/stdc++.h>
using namespace std;
int main2() {
  int y = 20000;
  int n, i;
  cin >> n;
  for (i = 0; i < n; i++) {
    int d;
    string dir;
    cin >> d >> dir;
    if (dir == "North") {
      if (y + d > 20000) return false;
      y += d;
    } else if (dir == "South") {
      if (y - d < 0) return false;
      y -= d;
    } else {
      if (y == 0 || y == 20000) return false;
    }
  }
  return (y == 20000);
}
int main() {
  bool ans = main2();
  if (ans == 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
