#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  bool ch = 0;
  long long int a, b;
  string s;
  int t;
  cin >> t;
  while (t--) {
    cin >> s >> a >> b;
    if (a >= 2400 && b - a > 0) ch = 1;
  }
  if (ch)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
