#include <bits/stdc++.h>
using namespace std;
vector<long long> divisor(long long n) {
  vector<long long> v;
  for (int i = 2; i <= sqrt(n); i++) {
    if (n % i == 0) {
      if (n / i == i)
        v.push_back(i);
      else {
        v.push_back(i);
        v.push_back(n / i);
      }
    }
  }
  return v;
}
bool isprime(int n) {
  int i;
  for (i = 2; i * i <= n; i++)
    if (n % i == 0) return 0;
  return 1;
}
vector<long long> sieve() {
  vector<long long> v(1000001);
  int i, j;
  for (i = 0; i < 1000001; i++) v[i] = 1;
  for (i = 2; i <= sqrt(1000001); i++)
    if (v[i] == 1)
      for (j = i * i; j <= 1000000; j += i) v[j] = 0;
  v[1] = 0;
  return v;
}
int main() {
  ios_base::sync_with_stdio(false);
  long long a, b = 31, c, d, e, sum = 0, count = 0, flag = 0, j = 0, i = 1;
  long long x, y;
  long long n, m, t, k, l, r;
  string s;
  vector<long long> v;
  cin >> n;
  long long curr = 0;
  for (i = 0; i < n; i++) {
    cin >> a >> s;
    if (s == "North")
      curr -= a;
    else if (s == "South")
      curr += a;
    else if (curr == 0 || curr == 20000) {
      cout << "NO";
      return 0;
    }
    if (curr < 0 || curr > 20000) {
      cout << "NO";
      return 0;
    }
  }
  if (curr == 0)
    cout << "YES";
  else
    cout << "NO";
}
