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