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