Codeforces user' handle color depends on his rating — it is red if his rating is greater or equal to 2400; it is orange if his rating is less than 2400 but greater or equal to 2200, etc. Each time participant takes part in a rated contest, his rating is changed depending on his performance.

Anton wants the color of his handle to become red. He considers his performance in the rated contest to be good if he outscored some participant, whose handle was colored red before the contest and his rating has increased after it.

Anton has written a program that analyses contest results and determines whether he performed good or not. Are you able to do the same?
The first line of the input contains a single integer *n* (1 ≤ *n* ≤ 100) — the number of participants Anton has outscored in this contest .

The next *n* lines describe participants results: the *i*-th of them consists of a participant handle *name*<sub class="lower-index">*i*</sub> and two integers *before*<sub class="lower-index">*i*</sub> and *after*<sub class="lower-index">*i*</sub> ( - 4000 ≤ *before*<sub class="lower-index">*i*</sub>, *after*<sub class="lower-index">*i*</sub> ≤ 4000) — participant's rating before and after the contest, respectively. Each handle is a non-empty string, consisting of no more than 10 characters, which might be lowercase and uppercase English letters, digits, characters «_» and «-» characters.

It is guaranteed that all handles are distinct.
In the first sample, Anton has outscored user with handle Burunduk1, whose handle was colored red before the contest and his rating has increased after the contest.

In the second sample, Applejack's rating has not increased after the contest, while both Fluttershy's and Pinkie_Pie's handles were not colored red before the contest.
3
Burunduk1 2526 2537
BudAlNik 2084 2214
subscriber 2833 2749
YES
3
Applejack 2400 2400
Fluttershy 2390 2431
Pinkie_Pie -2500 -2450
NO
1
Db -3373 3591
NO
5
Q2bz 960 2342
hmX 2710 -1348
gbAe -1969 -963
E -160 196
psi 2665 -3155
NO
9
mwAz9lQ 1786 -1631
nYgYFXZQfY -1849 -1775
KU4jF -1773 -3376
opR 3752 2931
Gl -1481 -1002
R -1111 3778
0i9B21DC 3650 289
Q8L2dS0 358 -3305
g -2662 3968
NO
5
zMSBcOUf -2883 -2238
YN -3314 -1480
fHpuccQn06 -1433 -589
aM1NVEPQi 399 3462
_L 2516 -3290
NO
1
a 2400 2401
YES
1
fucker 4000 4000
NO
1
Jora 2400 2401
YES
1
ACA 2400 2420
YES
1
Aca 2400 2420
YES
1
Sub_d 2401 2402
YES
2
Hack 2400 2401
Dum 1243 555
YES
1
XXX 2400 2500
YES
1
fucker 2400 2401
YES
1
X 2400 2500
YES
1
vineet 2400 2401
YES
1
abc 2400 2500
YES
1
aaaaa 2400 2401
YES
1
hoge 2400 2401
YES
1
Infinity 2400 2468
YES
1
Burunduk1 2400 2401
YES
1
Fuck 2400 2401
YES
1
fuck 2400 2401
YES
3
Applejack 2400 2401
Fluttershy 2390 2431
Pinkie_Pie -2500 -2450
YES
1
alex 2400 2401
YES
1
A 2400 2401
YES
1
a 2400 2455
YES
1
lol 2400 2401
YES
2
Burunduk1 2400 2537
BudAlNik 2084 2214
YES
1
aaaaaa 2400 2401
YES
1
Burunduk1 2400 2500
YES
1
ds 2400 2410
YES
1
as 2400 2401
YES
1
abc 2400 2401
YES
3
BudAlNik 2084 2214
subscriber 2833 2749
Burunduk1 2526 2537
YES
1
caonima 2400 2401
YES
1
arr 2400 2500
YES
1
x 2400 2401
YES
1
arrr 2400 2500
YES
1
abc 2400 2405
YES
3
Burunduk1 2400 2420
BudAlNik 2084 2214
subscriber 2833 2749
YES
1
Burunduk1 2400 2537
YES
1
HELLO 2400 2401
YES
1
eatmore 2400 2500
YES
1
b 2400 2401
YES
3
Burunduk1 2400 2537
BudAlNik 2084 2214
subscriber 2833 2749
YES
1
Applejack 2400 2410
YES
1
abacaba 2400 2451
YES
1
rekt_n00b 2500 2600
YES
t = int(input())
for i in range(t):
    a= list(map(str, input().split()))
    if int(a[1])> 2400 and int(a[1])< int(a[2]):
        print("Yes")
        break
else:
    print("NO")