#include <bits/stdc++.h>
using namespace std;
int main() {
  string name;
  int i, n, before, after;
  bool flag = false;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> name >> before >> after;
    if (before >= 2400 && after > before) flag = true;
  }
  if (flag)
    cout << "YES\n";
  else
    cout << "NO\n";
}
