#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  ;
  long long i, j, k, l, r, m, n, o, t;
  {
    cin >> n;
    long long done = 0;
    bool flag = 1;
    char str[50];
    for (i = 0; i < n; i++) {
      cin >> j;
      cin >> str;
      if (done < 0 || done > 20000) flag = 0;
      if (done == 0) {
        if (strcmp("South", str) != 0) flag = 0;
      }
      if (done == 20000) {
        if (strcmp("North", str) != 0) flag = 0;
      }
      if (strcmp("North", str) == 0) done -= j;
      if (strcmp("South", str) == 0) done += j;
    }
    if (done != 0) flag = 0;
    if (flag)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
