#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, flag = 0;
  cin >> n;
  for (int tc = 0; tc < n; tc++) {
    string s;
    int r1, r2;
    cin >> s >> r1 >> r2;
    if (r1 >= 2400) {
      if (r2 > r1) {
        flag = 1;
      }
    }
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
