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