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