#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, y = 0, x = 0, flag = 0;
  string s;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x >> s;
    if (s[0] == 'N')
      y -= x;
    else if (s[0] == 'S')
      y += x;
    else if (y == 0 || y == 20000)
      flag = 1;
    if (y < 0 || y > 20000) flag = 1;
  }
  if (y != 0 || flag == 1)
    cout << "NO\n";
  else
    cout << "YES\n";
}
