#include <bits/stdc++.h>
using namespace std;
vector<int> vc;
int main() {
  vector<string> vc1;
  vector<int> vc2;
  vector<int> vc;
  int x, z, c;
  string s;
  cin >> c;
  int count = 0;
  for (int i = 0; i < c; i++) {
    cin >> s >> x >> z;
    vc1.push_back(s);
    vc2.push_back(x);
    vc.push_back(z);
  }
  for (int i = 0; i < c; i++) {
    if (vc2[i] >= 2400 && vc[i] > vc2[i]) {
      cout << "YES" << endl;
      break;
    } else {
      count++;
    }
  }
  if (count == c) {
    cout << "NO" << endl;
  }
  return 0;
}
