#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  bool m = 0;
  while (t--) {
    string s;
    cin >> s;
    int a, b;
    cin >> a >> b;
    if (a >= 2400) {
      if (b > a) m = 1;
    }
  }
  if (m)
    cout << "YES";
  else
    cout << "NO";
}
