#include <bits/stdc++.h>
using namespace std;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, 1, 0, -1};
int inp[100005];
int main() {
  int n, a, b;
  cin >> n;
  int flag = 0;
  string str;
  for (int i = 0; i < n; i++) {
    cin >> str;
    int a, b;
    cin >> a >> b;
    if (a >= 2400 && b > 2400 && b - a > 0) {
      flag = 1;
    }
  }
  if (flag)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
