#include <bits/stdc++.h>
using namespace std;
int main() {
  string name;
  int after, before, t;
  cin >> t;
  bool ans = false;
  while (t--) {
    cin >> name >> before >> after;
    if (ans) continue;
    if (before >= 2400 && after > before) {
      ans = true;
    }
  }
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
