#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, max = 0, min = 0, a, b;
  char s[10000];
  scanf("%d", &n);
  while (n--) {
    scanf("%s", s);
    scanf("%d%d", &a, &b);
    if (a >= 2400 && (b - a > 0)) max++;
  }
  if (max > 0)
    printf("YES");
  else
    printf("NO");
  return 0;
}
