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