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