#include <bits/stdc++.h>
long double p = 3.14159265358979323, eps = 0.0000001;
using namespace std;
const int cnt = 456976 + 205;
int n, a, b, c;
long long res;
string s, s1;
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> s >> a >> b;
    if (a >= 2400 && b > a) ++c;
  }
  if (c) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
