#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int t1, t2;
  string s, ans = "NO";
  for (int i = 0; i < n; i++) {
    cin >> s >> t1 >> t2;
    if ((t1 >= 2400) && (t2 > t1)) {
      ans = "YES";
    }
  }
  cout << ans << endl;
  return 0;
}
