#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, f = 1;
  long d = 0, t[50];
  string dir[50];
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> t[i] >> dir[i];
  }
  if (dir[0] != "South")
    f = 0;
  else {
    for (i = 0; i < n; i++) {
      if (d < -20000 || d > 0) {
        f = 0;
        break;
      }
      if (d == -20000 && dir[i] != "North") {
        f = 0;
        break;
      }
      if (d == 0) {
        if (dir[i] != "South") {
          f = 0;
          break;
        }
      }
      if (dir[i] == "South") d = d - t[i];
      if (dir[i] == "North") d = d + t[i];
    }
  }
  if (f == 1 && d == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
