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