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