#include <bits/stdc++.h>
int main() {
  int n, yes, in, fi;
  char name[100];
  while (scanf("%d", &n) == 1) {
    yes = 0;
    while (n--) {
      getchar();
      scanf("%s %d %d", name, &in, &fi);
      if (yes) continue;
      if (in >= 2400) {
        if (fi > in) yes = 1;
      }
    }
    if (yes)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
