#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long int INFF = 1e17;
const double EPS = 1e-9;
const long long int MOD = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int n, curr = 0;
  bool flag = 0;
  cin >> n;
  for (int i = (0); i < (n); ++i) {
    int val;
    string s1;
    cin >> val >> s1;
    if (s1 == "North")
      curr -= val;
    else if (s1 == "South")
      curr += val;
    else if ((s1 == "East" || s1 == "West") && (!curr || curr == 2e4))
      flag = 1;
    if (curr < 0 || curr > 2e4) flag = 1;
  }
  (curr ? flag = 1 : flag = flag);
  cout << (flag ? "NO" : "YES") << '\n';
  return 0;
}
