#include <iostream>
using namespace std;
const int RED = 2400;
int main() {
int n;
cin >> n;
bool good = false;
for (int i = 0; i < n; i++) {
string handle;
int before, after;
cin >> handle >> before >> after;
if (before >= RED && after > before) {
good = true;
break;
}
}
if (good) {
cout << "YES";
} else {
cout << "NO";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNvbnN0IGludCBSRUQgPSAyNDAwOwoKaW50IG1haW4oKSB7CiAgICBpbnQgbjsKICAgIGNpbiA+PiBuOwogICAgYm9vbCBnb29kID0gZmFsc2U7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykgewogICAgICAgIHN0cmluZyBoYW5kbGU7CiAgICAgICAgaW50IGJlZm9yZSwgYWZ0ZXI7CiAgICAgICAgY2luID4+IGhhbmRsZSA+PiBiZWZvcmUgPj4gYWZ0ZXI7CiAgICAgICAgaWYgKGJlZm9yZSA+PSBSRUQgJiYgYWZ0ZXIgPiBiZWZvcmUpIHsKICAgICAgICAgICAgZ29vZCA9IHRydWU7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgIH0KCiAgICBpZiAoZ29vZCkgewogICAgICAgIGNvdXQgPDwgIllFUyI7CiAgICB9IGVsc2UgewogICAgICAgIGNvdXQgPDwgIk5PIjsKICAgIH0KCiAgICByZXR1cm4gMDsKfQ==