#include <bits/stdc++.h>
using namespace std;
char x[50];
char *pch;
int main() {
  int i, n, j, ok, semn, nr, nr2;
  cin >> n;
  cin.get();
  for (i = 1; i <= n; i++) {
    cin.get(x, 50);
    cin.get();
    j = 1;
    semn = 1;
    ok = 1;
    pch = strtok(x, " ");
    while (pch != NULL) {
      if (j == 2) {
        if (pch[0] == '-') {
          semn = -1;
          strcpy(pch, pch + 1);
        }
        nr = atol(pch) * semn;
        if (nr < 2400) ok = 0;
      }
      if (ok && j == 3) {
        if (pch[0] == '-') {
          semn = -1;
          strcpy(pch, pch + 1);
        }
        nr2 = atol(pch) * semn;
        if (nr2 - nr <= 0) ok = 0;
      }
      j++;
      pch = strtok(NULL, " ");
    }
    if (ok) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
