#include <bits/stdc++.h>
using namespace std;
const double sn = 1e-6;
int n;
char arr[55][10];
int d[55];
int main() {
  scanf("%d", &n);
  int current = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d%s", &d[i], arr[i]);
  }
  for (int i = 0; i < n; i++) {
    string s(arr[i]);
    if ((current == 0 && s != "South") || (current == 20000 && s != "North")) {
      printf("NO\n");
      return 0;
    }
    if ((s == "South" && current + d[i] > 20000) ||
        (s == "North" && current - d[i] < 0)) {
      printf("NO\n");
      return 0;
    }
    if (s == "South")
      current += d[i];
    else if (s == "North")
      current -= d[i];
  }
  if (current == 0)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
