#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k1, k2, c;
  cin >> n;
  string s;
  c = 0;
  while (n--) {
    cin >> s >> k1 >> k2;
    if (k1 >= 2400 && k2 > k1) c++;
  }
  if (c > 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
