#include <bits/stdc++.h>
using namespace std;
int main() {
  long pos = 0;
  long long distance;
  int n, flag = 1;
  char dir[20];
  cin >> n;
  for (int j = 0; j < n; j++) {
    cin >> distance >> dir;
    if (pos == 0 && strcmp(dir, "South") != 0) {
      flag = 0;
    } else if (pos == 20000 && strcmp(dir, "North") != 0) {
      flag = 0;
    } else {
      if (strcmp(dir, "South") == 0) {
        pos = pos + distance;
        if (pos > 20000) flag = 0;
      } else if (strcmp(dir, "North") == 0) {
        pos = pos - distance;
        if (pos < 0) {
          flag = 0;
        }
      }
    }
  }
  if (pos) flag = 0;
  if (flag)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
