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