#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:36777216")
using namespace std;
int main() {
  int n;
  cin >> n;
  int shir = 10000;
  bool result = true;
  for (int i = 0; i < n; ++i) {
    int x;
    char buffer[10];
    scanf("%d%s", &x, buffer);
    string s = buffer;
    if (s == "West" || s == "East") {
      if (shir == 10000 || shir == -10000) {
        result = false;
        break;
      }
      continue;
    }
    if (s == "South") {
      if (shir == -10000) {
        result = false;
        break;
      }
      shir -= x;
      if (shir < -10000) {
        result = false;
        break;
      }
    }
    if (s == "North") {
      if (shir == 10000) {
        result = false;
        break;
      }
      shir += x;
      if (shir > 10000) {
        result = false;
        break;
      }
    }
  }
  if (shir != 10000) {
    result = false;
  }
  if (result) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
