#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  int c = 0;
  while (t--) {
    string s;
    int b, a;
    cin >> s >> b >> a;
    if (b >= 2400 && a > b) {
      c++;
    }
  }
  if (c == 0)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
  return 0;
}
