#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int i, n;
  cin >> n;
  string name;
  long long before, after, ans = 0;
  for (i = 0; i < n; i++) {
    cin >> name >> before >> after;
    if (before >= 2400 && after > before) ans++;
  }
  if (ans > 0)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
