#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  scanf("%d", &a);
  string ans = "NO";
  for (int i = 0; i < a; i++) {
    string name;
    int bef, aft;
    cin >> name;
    scanf("%d %d", &bef, &aft);
    if (bef >= 2400 && aft > bef) {
      ans = "YES";
    }
  }
  cout << ans << endl;
  return 0;
}
