#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  int cnt = 0;
  cin >> t;
  while (t--) {
    string s;
    long long before, after;
    cin >> s >> before >> after;
    if (before >= 2400 && after > before)
      cnt++;
    else
      continue;
  }
  if (cnt == 0)
    cout << "NO\n";
  else
    cout << "YES\n";
  return 0;
}
