#include <bits/stdc++.h>
using namespace std;
struct p {
  string name;
  int bef, aft;
};
p a[110];
int n, k = 0;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i].name >> a[i].bef >> a[i].aft;
  for (int j = 0; j < n; j++) {
    if (a[j].bef >= 2400 && a[j].aft - a[j].bef > 0) {
      k = 1;
      break;
    }
  }
  if (k == 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
