#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9;
const long long int INF = 1e18;
const int N = 100005;
const int MOD = 1e9 + 7;
const double EPS = 1e-6;
const double PI = acos(-1.0);
int main(int argc, char const *argv[]) {
  string s;
  int n, a, b;
  cin >> n;
  bool f = false;
  while (n--) {
    cin >> s >> a >> b;
    if (a >= 2400 && b > a) f = true;
  }
  cout << (f ? "YES" : "NO") << endl;
  return 0;
}
