#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, i;
  cin >> n;
  string s;
  int a, b, flag = 0;
  for (i = 1; i <= n; ++i) {
    cin >> s >> a >> b;
    if (a >= 2400) {
      if (b > a) flag = 1;
    }
  }
  if (flag == 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
