#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long long inf = 1e16;
const long long ninf = LLONG_MIN;
const double eps = 1e-12;
const long long N = 1000005;
const long long LOGN = 19;
const double PI = 3.14159265358979323846;
long long n;
long long a[N];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  long long is = 0;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    long long l, r;
    cin >> l >> r;
    if (r > l && l >= 2400) {
      is = 1;
    }
  }
  if (is)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
