#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int s1, s2;
  int n;
  cin >> n;
  bool good = false;
  for (int i = 0; i < n; i++) {
    cin >> s >> s1 >> s2;
    if (s1 >= 2400 && s2 > s1) {
      good = true;
      break;
    }
  }
  cout << (good ? "YES" : "NO");
  return 0;
}
