#include <bits/stdc++.h>
using namespace std;
int inp() {
  bool minus = false;
  int result = 0;
  char ch;
  ch = getchar();
  while (true) {
    if (ch == '-') break;
    if (ch >= '0' && ch <= '9') break;
    ch = getchar();
  }
  if (ch == '-')
    minus = true;
  else
    result = ch - '0';
  while (true) {
    ch = getchar();
    if (ch < '0' || ch > '9') break;
    result = result * 10 + (ch - '0');
  }
  if (minus)
    return -result;
  else
    return result;
}
int main() {
  int n, f = 0, x, y;
  string s;
  scanf("%d", &n);
  while (n--) {
    cin >> s;
    scanf("%d%d", &x, &y);
    if (x >= 2400 && y > x) f = 1;
  }
  if (f == 1)
    printf("YES");
  else
    printf("NO");
  return 0;
}
