#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, before, after, flag = 0;
  char str[11];
  cin >> n;
  while (n--) {
    cin >> str >> before >> after;
    if (before >= 2400 && after > before) flag = 1;
  }
  if (flag == 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
