#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long int num[n];
  string str[51];
  int position = 0, ans = 1;
  long int length = 20000;
  for (int i = 1; i <= n; i++) {
    cin >> num[i] >> str[i];
    if (position == 0 && str[i] != "South")
      ans = 0;
    else if (position == 1 && str[i] != "North")
      ans = 0;
    else if (str[i] == "South") {
      if (num[i] > 20000 || length < 0 || length > 20000)
        ans = 0;
      else
        length = length - num[i];
    } else if (str[i] == "North") {
      if (num[i] > 20000 || length < 0 || length > 20000)
        ans = 0;
      else
        length = length + num[i];
    }
    if (length == 0)
      position = 1;
    else if (length == 20000)
      position = 0;
    else
      position = (-1);
  }
  if (ans == 0)
    cout << "NO";
  else if (length == 20000)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
