#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (~scanf("%d", &n)) {
    int fla = 0;
    for (int i = 0; i < n; i++) {
      char a[100];
      int b, c;
      scanf("%s%d%d", a, &b, &c);
      if (b >= 2400 && c >= 2400 && c > b) fla = 1;
    }
    if (fla == 1) {
      printf("YES\n");
    } else
      printf("NO\n");
  }
}
