Unfortunately, on Ace's trip his bus breaks down! Looking around he sees figures . Having just watched The Walking Dead, he recognizes them as a horde of zombies! Looking in his car, he pulls out a small pistol. The zombies pick up his scent and begin walking towards him in a 5 columns by rows grid . Unfortunately, Ace being the poor programmer he is, hasn't figured out how to shoot diagonally yet. Luckily, the zombies haven't figured out how to walk diagonally either, and walk 1 square towards Ace per minute.
Ace has infinite ammunition, but his gun can hold bullets at once. Ace is not a hunter, so he needs a lot of time to aim, reload, and move. In every minute, he can do one of 3 things:
- Move - He can move 1 column to the left or right.
- Shoot - He can expend one bullet, shooting straight down the column that he is on. Keep in mind that he cannot do this while his gun is empty.
- Reload - He can throw out all the current bullets in his gun and put bullets in his gun.
Ace will always move first, and his gun will always be fully loaded at the start. If any zombie reaches row (The row Ace is on), they will jump on him and bite him. Ace needs your help to determine whether he will survive.
Ace always starts in column 1.
If Ace cannot survive, output Never lucky, Ace.
. If Ace can survive, output You can do it, Ace!
.
Input Specification
The first line will contain integers , , and .
The next lines will contain , the column and , the row, specifying the location of each zombie.
Output Specification
Output either Never lucky, Ace.
or You can do it, Ace!
based on his eventual fate.
Sample Input 1
3 6 2
1 1
2 3
3 6
Sample Output 1
You can do it, Ace!
Explanation for Sample Output 1
Ace shoots the zombie at , and then moves to column 2, where he shoots the second zombie who has advanced to . The third zombie has advanced to by this point. Ace moves to the 3rd column, reloads, and then shoots the zombie and survives.
Sample Input 2
2 2 1
1 1
2 1
Sample Output 2
Never lucky, Ace.
Explanation for Sample Output 2
Ace shoots the first zombie, but his poor single-shot gun can't shoot fast enough! The second zombie kills him while he's reloading.
Comments
anyone here from ioiqrp6?
Your random number generator is not appreciated.
same
This thing has been fixed - I don't think an RNG will work anymore.
RNG still works. I checked.