#include <bits/stdc++.h>
using namespace std;
int main() {
  int befor, after, n, x = 0;
  char name[50];
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> name >> befor >> after;
    if (befor >= 2400 && after > befor) x = 1;
  }
  if (x == 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
