#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  bool t = false;
  string s;
  cin >> n;
  while (n--) {
    cin >> s;
    cin >> a >> b;
    if (a >= 2400 && b > a) t = true;
  }
  t ? cout << "YES" : cout << "NO";
}
