#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, len, dis = 0;
  string s;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> len >> s;
    if (dis < 0 || dis > 20000) break;
    if (dis == 0 && s[0] != 'S') break;
    if (dis == 20000 && s[0] != 'N') break;
    if (s[0] == 'N') dis = dis - len;
    if (s[0] == 'S') dis = dis + len;
  }
  if (i == n + 1 && dis == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
