#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n, a, b, flag = 0;
  string s;
  cin >> n;
  while (n--) {
    cin >> s >> a >> b;
    if (a >= 2400 && (b - a) > 0) flag = 1;
  }
  if (flag == 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
