Kira is fighting the ZAFT forces in space, stopping chairman Durandal's plans to rule the Earth. Unfortunately, his mech, the Strike Freedom has sustained major damages throughout the battle. Being the genius that he is, he calculates that he has minutes left before the Strike Freedom shuts down. Even worse, there are still enemies near by, power levels in the range .
- Power level 1 grunts will take seconds to defeat
- Power level 2 elites will take minute to defeat
- Power level 3 aces will take minutes to defeat
Because he spent all his time calculating how much time he has left, he needs you to figure out if he has time to defeat all the enemies or to make a tactical retreat.
The first line of the input will contain an integer , representing the amount of time before the Strike Freedom shuts down.
The second line will contain an integer , representing the amount of enemies left.
The next lines will each contain an element , representing the power level of that enemy.
If Kira can defeat all the enemies before his mech shuts down, output
Continue. Otherwise, output
Make sure your output matches this exactly, including capitalization.
10 6 1 1 2 3 1 2
We know that Kira has minutes to defeat all enemies. There are 3 Power level 1 enemies which is minutes, 2 Power level 2 enemies which is minutes and 1 Power level 3 enemy which is minutes. In total, it will take minutes which is less than the minutes given, therefore, Kira can continue to fight.