#ABC190B. [ABC190B] Magic 3
[ABC190B] Magic 3
Score : points
Problem Statement
Takahashi, the magician, is fighting with a monster. He can use spells. The -th spell takes seconds to cast and has a power . However, the monster is strong enough to avoid taking damage from spells taking or more seconds to cast and spells with powers or less. Also, there is nothing other than spells that can do damage to the monster. Can Takahashi do damage to the monster?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If Takahashi can do damage to the monster, print Yes
; otherwise, print No
.
The second and fourth spells take too much time to do damage. Also, the first and second spells do not have enough powers to do damage. Thus, only the third spell can do damage.
Only the seventh spell can do damage.