#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  int n, x, y;
  string s;
  cin >> n;
  bool b = false;
  for (int i = 0; i < n; i++) {
    cin >> s >> x >> y;
    if (x >= 2400 && y > x) {
      b = true;
    }
  }
  if (b) {
    cout << "YES";
  } else
    cout << "NO";
  return 0;
}
