#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  long long n, f = 0;
  cin >> n;
  while (n--) {
    string s;
    long long a, b;
    cin >> s >> a >> b;
    if (a >= 2400 && b > a) f = 1;
  }
  if (f == 1)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
