#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[12];
  int a, b, n;
  cin >> n;
  int ok = 0;
  for (int i = 0; i < n; i++) {
    scanf("%s%d%d", s, &a, &b);
    if (a < b && a >= 2400) ok = 1;
  }
  if (ok)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
