#include <bits/stdc++.h>
using namespace std;
long long n, t, m, ans, med;
bool fl = false;
int main() {
  cin >> n;
  string s;
  while (n--) {
    cin >> s >> t >> m;
    if (t >= 2400) {
      if (m > t) fl = true;
    }
  }
  if (fl)
    puts("YES");
  else
    puts("NO");
  return 0;
}
