#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  string s;
  int in, fi;
  int flag = 0;
  for (int i = 0; i < n; i++) {
    cin >> s;
    scanf("%d %d", &in, &fi);
    if (in >= 2400 && fi > in && flag == 0) {
      flag = 1;
    }
  }
  if (flag == 1) {
    printf("Yes");
  } else {
    printf("No");
  }
}
