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