#include <bits/stdc++.h>
using namespace std;
struct profile {
  string name;
  int initial;
  int final;
};
int main() {
  int n;
  cin >> n;
  profile arr[n];
  int g = 0;
  for (int i = 0; i <= n - 1; i++) {
    cin >> arr[i].name;
    cin >> arr[i].initial;
    cin >> arr[i].final;
    if ((arr[i].initial < arr[i].final) && (arr[i].initial >= 2400)) {
      g = g + 1;
    }
  }
  if (g >= 1) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
