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