{"problem":{"name":"Magic 3","description":{"content":"Takahashi, the magician, is fighting with a monster.   He can use $N$ spells.   The $i$\\-th spell takes $X_i$ seconds to cast and has a power $Y_i$.   However, the monster is strong enough to avoid ta","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc190_b"},"statements":[{"statement_type":"Markdown","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?\n\n## Constraints\n\n*   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$\n\n## Input\n\nInput 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$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc190_b","tags":[],"sample_group":[["4 9 9\n5 5\n15 5\n5 15\n15 15","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."],["3 691 273\n691 997\n593 273\n691 273","No"],["7 100 100\n10 11\n12 67\n192 79\n154 197\n142 158\n20 25\n17 108","Yes\n\nOnly the seventh spell can do damage."]],"created_at":"2026-03-03 11:01:13"}}