#include <bits/stdc++.h>
int main() {
  char name[20];
  int before, after;
  int i, n, step;
  while (~scanf("%d", &n)) {
    step = 0;
    for (i = 0; i < n; i++) {
      scanf("%s%d%d", name, &before, &after);
      if (before >= 2400 && before < after) step = 1;
    }
    if (step == 1)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
