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