#include <bits/stdc++.h>
using namespace std;
long long n, c, d, cnt = 0, sum = 0, m, t, a[100000], b, p = 0;
string s;
bool flag = true;
inline void doing() {
  cin >> n;
  while (n--) {
    cin >> s >> c >> d;
    if (flag && d > c && c >= 2400) {
      cout << "YES";
      flag = false;
    }
  }
  if (flag) cout << "NO";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  doing();
}
