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