#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  return b ? gcd(b, a % b) : a;
}
long long int lcm(long long int a, long long int b) {
  return a * b / gcd(a, b);
}
int n;
long long int cntr;
bool ok;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    string s;
    cin >> x >> s;
    if (cntr < 0 || cntr > 20000) return cout << "NO\n", 0;
    if (cntr == 0) {
      if (s[0] != 'S') return cout << "NO\n", 0;
      cntr += x;
      continue;
    }
    if (cntr == 20000) {
      if (s[0] != 'N') return cout << "NO\n", 0;
      cntr -= x;
      continue;
    }
    if (s[0] == 'E' || s[0] == 'W') continue;
    if (s[0] == 'S')
      cntr += x;
    else
      cntr -= x;
  }
  if (cntr == 0)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
