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