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