#include <bits/stdc++.h>
using namespace std;
int getFldsFromLine(char *line, std::vector<char *> &res,
                    const char *sep = " \t\n\v\f\r");
int main(int argc, char **argv) {
  FILE *infile = stdin;
  char *line;
  line = (char *)calloc(5000000, sizeof(char));
  if (line == NULL) {
    fprintf(stderr, "Couldn't allocate space for '%s'\nBye!\n", "line");
    exit(-1);
  };
  std::vector<char *> flds;
  int numFlds, numCases, caseNum = 0;
  fgets(line, 5000000, infile);
  numFlds = getFldsFromLine(line, flds);
  numCases = atoi(flds[0]);
  bool isGood = false;
  for (caseNum = 1; caseNum <= numCases; ++caseNum) {
    fgets(line, 5000000, infile);
    numFlds = getFldsFromLine(line, flds);
    int num1 = atoi(flds[1]), num2 = atoi(flds[2]);
    if ((num1 >= 2400) && (num2 > num1)) isGood = true;
  }
  if (isGood)
    printf("YES\n");
  else
    printf("NO\n");
  return (0);
}
int getFldsFromLine(char *line, std::vector<char *> &res, const char *sep) {
  res.clear();
  char *tok = strtok(line, sep);
  while (tok) {
    res.push_back(tok);
    tok = strtok(0, sep);
  }
  return res.size();
}
