#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, f = 0;
  cin >> n;
  int i, a[100], b[1000];
  for (i = 0; i < n; i++) {
    string s;
    cin >> s;
    cin >> a[i];
    cin >> b[i];
  }
  for (i = 0; i < n; i++) {
    if (a[i] >= 2400 && b[i] > a[i]) f = 1;
  }
  if (f == 1)
    cout << "YES";
  else
    cout << "No";
}
