#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 5;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string name;
    int before, after;
    cin >> name >> before >> after;
    if (before >= 2400) {
      if (after > before) {
        cout << "YES";
        return 0;
      }
    }
  }
  cout << "NO";
  return 0;
}
