#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  string ans = "NO";
  while (n--) {
    string name;
    int before, after;
    cin >> name >> before >> after;
    if (after > before && before >= 2400) {
      ans = "YES";
    }
  }
  cout << ans << endl;
  return 0;
}
