Winnie and Modo are playing a game together with
Input Specification
The first line will contain
Output Specification
Output the winner of the game if both players play optimally.
Constraints
For all subtasks:
Subtask 1 [20%]
Subtask 2 [80%]
No additional constraints.
Sample Input 1
4 2
Sample Output 1
Modo
Explanation 1
Winnie can take 1, 2 or 4 bottles. If Winnie takes 4 bottles, she loses because she took the last bottle. If Winnie takes 2 bottles, Modo can take 1 bottle, forcing Winnie to take the last bottle. If Winnie takes 1 bottle, Modo can take 2 bottles and force Winnie to take the last bottle. Modo will always win if she plays optimally.
Sample Input 2
10 3
Sample Output 2
Winnie
Explanation 2
Winnie can take 9 bottles, forcing Modo to take the last bottle.
Comments