Codeforces Round 357 (Div. 2)
A
A Good Contest
Codeforces
800
原题
←B →
翻译中…

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?

翻译中…

Input

翻译中…

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*_{*i*}$ and two integers $*before*_{*i*}$ and $*after*_{*i*}$ ($- 4000 ≤ *before*_{*i*}, *after*_{*i*} ≤ 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.

翻译中…

Output

翻译中…

Print «YES» (quotes for clarity), if Anton has performed good in the contest and «NO» (quotes for clarity) otherwise.

翻译中…

Note

翻译中…

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.

翻译中…

样例

Input #1
3
Burunduk1 2526 2537
BudAlNik 2084 2214
subscriber 2833 2749
Output #1
YES
InputCopy OutputCopy
Input #2
3
Applejack 2400 2400
Fluttershy 2390 2431
Pinkie_Pie -2500 -2450
Output #2
NO
InputCopy OutputCopy
题目信息
题号
681A
时间限制
1 s
内存限制
256 MB
标签
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。