#include <bits/stdc++.h>
using namespace std;
string s;
int n, a[105], b[105];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> s >> a[i] >> b[i];
  for (int i = 1; i <= n; i++) {
    if (a[i] >= 2400 && b[i] > a[i]) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
