#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
const int maxn = (int)1e5 + 10;
const int mod = (int)1e9 + 7;
int dx[] = {0, 0, 1, -1, 1, -1, 1, -1};
int dy[] = {1, -1, 0, 0, 1, -1, -1, 1};
long long a, b, c, d, i, j, k, l, t, n, m, p, cs, kk, q, r, s;
char h[1000], o;
double e, f, g;
vector<long long> u, v, w;
vector<pair<long long, long long> > pv;
pair<long long, long long> pp;
string x, y, z;
map<string, long long> mm;
int main() {
  while (cin >> a) {
    n = 0;
    for (i = 0; i < (a); i++) {
      cin >> x >> b >> c;
      if (b >= 2400 && c > b) {
        n = 1;
      }
    }
    if (n == 0)
      printf("NO\n");
    else
      printf("YES\n");
  }
  return 0;
}
