#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int n, i;
  cin >> n;
  for (i = 0; i < n; i++) {
    string s;
    cin >> s;
    int a, b;
    cin >> a >> b;
    if (a >= 2400 and a < b) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
  return 0;
}
