#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cnt = 0;
  string handel;
  int befor, after;
  for (int i = 0; i < n; i++) {
    cin >> handel >> befor >> after;
    if (befor >= 2400 && after - befor > 0) {
      cnt++;
    }
  }
  if (cnt > 0)
    cout << "YES";
  else
    cout << "NO";
}
