#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, d;
  cin >> n;
  long long sec = 0;
  long long f = 0;
  for (int i = 0; i < n; i++) {
    string a;
    long long b, c;
    cin >> a >> b >> c;
    if (b >= 2400 && c - b > 0 && sec == 0) {
      printf("YES\n");
      sec = 1;
    }
  }
  if (sec == 0) {
    printf("NO\n");
  }
  return 0;
}
