{"raw_statement":[{"iden":"problem statement","content":"Takahashi, the magician, is fighting with a monster.  \nHe can use $N$ spells.  \nThe $i$\\-th spell takes $X_i$ seconds to cast and has a power $Y_i$.  \nHowever, the monster is strong enough to avoid taking damage from spells taking $S$ or more seconds to cast and spells with powers $D$ or less.  \nAlso, there is nothing other than spells that can do damage to the monster.  \nCan Takahashi do damage to the monster?"},{"iden":"constraints","content":"*   All values in input are integers.\n*   $1 ≤ N ≤ 100$\n*   $1 ≤ X_i ≤ 10^9$\n*   $1 ≤ Y_i ≤ 10^9$\n*   $1 ≤ S ≤ 10^9$\n*   $1 ≤ D ≤ 10^9$"},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$ $S$ $D$\n$X_1$ $Y_1$\n$\\vdots$\n$X_N$ $Y_N$"},{"iden":"sample input 1","content":"4 9 9\n5 5\n15 5\n5 15\n15 15"},{"iden":"sample output 1","content":"Yes\n\nThe second and fourth spells take too much time to do damage.  \nAlso, the first and second spells do not have enough powers to do damage.  \nThus, only the third spell can do damage."},{"iden":"sample input 2","content":"3 691 273\n691 997\n593 273\n691 273"},{"iden":"sample output 2","content":"No"},{"iden":"sample input 3","content":"7 100 100\n10 11\n12 67\n192 79\n154 197\n142 158\n20 25\n17 108"},{"iden":"sample output 3","content":"Yes\n\nOnly the seventh spell can do damage."}],"translated_statement":null,"sample_group":[],"show_order":["render_html"],"formal_statement":null,"simple_statement":null,"has_page_source":true}