#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  bool ans = 0;
  cin >> n;
  while (n--) {
    string str;
    int a, b;
    cin >> str >> a >> b;
    if (a >= 2400 && b > a) ans = 1;
  }
  if (ans)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
