#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr1[n], arr2[n];
  string str[100];
  for (int i = 0; i < n; i++) {
    cin >> str[i] >> arr1[i] >> arr2[i];
  }
  for (int i = 0; i < n; i++) {
    if (arr1[i] >= 2400 && arr2[i] > arr1[i]) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
