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