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