#include <bits/stdc++.h>
using namespace std;
string s;
int i, n, r1, r2;
int main() {
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> s >> r1 >> r2;
    if (r2 > r1 && r1 >= 2400) cout << "YES", exit(0);
  }
  cout << "NO";
  return 0;
}
