#include <bits/stdc++.h>
const double EPS = 0.00000001;
const long long mod = 1000000000 + 7;
using namespace std;
int main() {
  int n;
  cin >> n;
  int cnt = 0;
  int a, b;
  string s;
  for (int i = 0; i < n; i++) {
    cin >> s >> a >> b;
    if (a >= 2400 && (b > a)) cnt++;
  }
  if (cnt)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  int _________________________;
  cin >> _________________________;
  return 0;
}
