#include <bits/stdc++.h>
using namespace std;
string s;
int scb, sca;
int y;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> s >> scb >> sca;
    if ((scb >= 2400) && (sca > scb)) y = 1;
  }
  if (y) printf("YES\n");
  if (!y) printf("NO\n");
  return 0;
}
