#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vvl = vector<vl>;
using pll = pair<ll, ll>;
using vb = vector<bool>;
const ll oo = 0x3f3f3f3f3f3f3f3fLL;
const double eps = 1e-9;
int main() {
  ios::sync_with_stdio(false);
  ll n;
  cin >> n;
  bool good = false;
  for (int i = (0); i < (n); i++) {
    string name;
    ll b, a;
    cin >> name >> b >> a;
    if (a > b && b >= 2400) good = true;
  }
  if (good)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
