#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, x, y, c = 0;
  char s[10];
  cin >> n;
  while (n--) {
    cin >> s >> x >> y;
    if (x >= 2400 && y > 2400 && x < y) c = 1;
  }
  if (c == 1)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
