{"trustable":true,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eCodeforces user\u0027 handle color depends on his rating\u0026nbsp;— it is red if his rating is greater or equal to \u003cspan class\u003d\"tex-span\"\u003e2400\u003c/span\u003e; it is orange if his rating is less than \u003cspan class\u003d\"tex-span\"\u003e2400\u003c/span\u003e but greater or equal to \u003cspan class\u003d\"tex-span\"\u003e2200\u003c/span\u003e, etc. Each time participant takes part in a rated contest, his rating is changed depending on his performance.\u003c/p\u003e\u003cp\u003eAnton wants the color of his handle to become red. He considers his performance in the rated contest to be \u003cspan class\u003d\"tex-font-style-it\"\u003egood\u003c/span\u003e if he outscored some participant, whose handle was colored red before the contest and his rating has increased after it.\u003c/p\u003e\u003cp\u003eAnton has written a program that analyses contest results and determines whether he performed good or not. Are you able to do the same?\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first line of the input contains a single integer \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e (\u003cspan class\u003d\"tex-span\"\u003e1 ≤ \u003ci\u003en\u003c/i\u003e ≤ 100\u003c/span\u003e)\u0026nbsp;— the number of participants Anton has outscored in this contest .\u003c/p\u003e\u003cp\u003eThe next \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e lines describe participants results: the \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/span\u003e-th of them consists of a participant handle \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ename\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e\u003c/span\u003e and two integers \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ebefore\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e\u003c/span\u003e and \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003eafter\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e\u003c/span\u003e (\u003cspan class\u003d\"tex-span\"\u003e - 4000 ≤ \u003ci\u003ebefore\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e, \u003ci\u003eafter\u003c/i\u003e\u003csub class\u003d\"lower-index\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e ≤ 4000\u003c/span\u003e)\u0026nbsp;— participant\u0027s rating before and after the contest, respectively. Each handle is a non-empty string, consisting of no more than \u003cspan class\u003d\"tex-span\"\u003e10\u003c/span\u003e characters, which might be lowercase and uppercase English letters, digits, characters «\u003cspan class\u003d\"tex-font-style-tt\"\u003e_\u003c/span\u003e» and «\u003cspan class\u003d\"tex-font-style-tt\"\u003e-\u003c/span\u003e» characters.\u003c/p\u003e\u003cp\u003eIt is guaranteed that all handles are distinct.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003ePrint «\u003cspan class\u003d\"tex-font-style-tt\"\u003eYES\u003c/span\u003e» (quotes for clarity), if Anton has performed good in the contest and «\u003cspan class\u003d\"tex-font-style-tt\"\u003eNO\u003c/span\u003e» (quotes for clarity) otherwise.\u003c/p\u003e"}},{"title":"Examples","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3\nBurunduk1 2526 2537\nBudAlNik 2084 2214\nsubscriber 2833 2749\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eYES\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3\nApplejack 2400 2400\nFluttershy 2390 2431\nPinkie_Pie -2500 -2450\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eNO\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eIn the first sample, Anton has outscored user with handle \u003cspan class\u003d\"tex-font-style-tt\"\u003eBurunduk1\u003c/span\u003e, whose handle was colored red before the contest and his rating has increased after the contest.\u003c/p\u003e\u003cp\u003eIn the second sample, \u003cspan class\u003d\"tex-font-style-tt\"\u003eApplejack\u003c/span\u003e\u0027s rating has not increased after the contest, while both \u003cspan class\u003d\"tex-font-style-tt\"\u003eFluttershy\u003c/span\u003e\u0027s and \u003cspan class\u003d\"tex-font-style-tt\"\u003ePinkie_Pie\u003c/span\u003e\u0027s handles were not colored red before the contest.\u003c/p\u003e"}}]}