#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  long long m, n, b, c, d, i, j, k, x, y, z, l, q, r;
  string s1, s2, s3, s4;
  long long cnt = 0, ans = 0, sum = 0;
  cin >> t;
  ;
  for (long long i = 0; i < t; i++) {
    cin >> s1 >> n >> m;
    if (n < m and n >= 2400) cnt = 1;
  }
  if (cnt)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
