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