4706: 一场精彩的比赛

内存限制:256 MB 时间限制:2 S 标准输入输出
题目类型:传统 评测方式:文本比较 上传者:
提交:4 通过:3

题目描述

Codeforces用户的等级颜色取决于他的评分,当他的评分大于或等于2400时为红色如果他的评分低于2400,但大于或等于2200,则显示为橙色。 每次参与者参加评分比赛,他的评分根据他的表现而变化。  

安东希望自己的等级颜色变成红色。 如果他的得分不低于红色参与者,他就认为自己在评分比赛中的表现很好,比赛后他的评分提高了。  

安东写了一个程序,可以分析比赛结果,并判断他的表现好不好。 你能做到吗?  



输入格式

输入的第一行包含一个整数n(1≤n≤100)-安东在这场比赛中得分超过的参与者的数量。   

接下来的n行描述了参与者的结果:

   第i行由一个参与者姓名namei和两个整数组成(-4000≤beforei, afteri≤4000),分别是参与者在比赛前和比赛后的评分。 每个姓名都是非空字符串,由不超过10个字符组成,可以是小写和大写英文字母、数字、字符«_»和«-»。   

它保证所有姓名都是不同的。   

输出格式

如果Anton在比赛中表现良好,则输出 YES,否则输出 NO。   


Examples
Input
3
Burunduk1 2526 2537
BudAlNik 2084 2214
subscriber 2833 2749
Output
YES
Input
3
Applejack 2400 2400
Fluttershy 2390 2431
Pinkie_Pie -2500 -2450
Output
NO
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.

输入样例 复制

3
Burunduk1 2526 2537
BudAlNik 2084 2214
subscriber 2833 2749

输出样例 复制

YES