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