#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int fl = 0;
  for (int i = 0; i < n; i++) {
    string name;
    int r1, r2;
    cin >> name >> r1 >> r2;
    if (r1 >= 2400 && r2 > r1) {
      fl = 1;
    }
  }
  if (fl) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
