#include <bits/stdc++.h>
using namespace std;
int before, after, t;
string s;
int main() {
  cin >> t;
  int f = 0;
  for (int x = 0; x < t; x++) {
    cin >> s >> before >> after;
    if (2400 <= before) {
      if (after > before) {
        f = 1;
      }
    }
  }
  if (f == 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
