#include <bits/stdc++.h>
using namespace std;
char ch[4000];
int n, x, y;
inline bool work(int n) {
  int a, b;
  while (n--) {
    scanf("%s", ch);
    scanf("%d%d", &a, &b);
    if (a < 2400) continue;
    if (a >= b) continue;
    return 1;
  }
  return 0;
}
int main() {
  scanf("%d", &n);
  if (work(n))
    puts("YES");
  else
    puts("NO");
}
