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