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