#include <bits/stdc++.h>
using namespace std;
const int maxn = 5e5 + 85 - 69;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  int amoD = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    string B;
    cin >> B;
    char h = B[0];
    if (h == 'W' or h == 'E') {
      if (amoD == 0 or amoD == 20000) {
        cout << "NO\n";
        return 0;
      }
      continue;
    }
    if (h == 'S')
      amoD += a;
    else
      amoD -= a;
    if (amoD < 0) {
      cout << "NO\n";
      return 0;
    }
    if (amoD > 20000) {
      cout << "NO\n";
      return 0;
    }
  }
  if (!amoD)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
