#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, i1, j, k, f = 0, l, m, n, a[10001] = {0};
  string s;
  cin >> n;
  getline(cin, s);
  for (i = 0; i < n; i++) {
    cin >> s >> k >> l;
    if (k >= 2400 && l > k) f = 1;
    getline(cin, s);
  }
  if (f == 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
