508007 - 移动硬币

【题目描述】移动硬币(coin)

棋盘的大小是n×m,初始时一枚硬币放在棋盘右上角(1,m)。每次一个人可以把硬币移到左边、下面或左边下面的空格子上。最后不能移动硬币的人会输掉比赛。

Input

包含多组测试用例,每行包含两个整数n,m(0<n,m≤2000)。当n=0和m=0时结束。

Output

如果先手玩家赢了游戏,输出“Wonderful!”,否则输出“What a pity!”。

Examples

Input

5 3
5 4
6 6
0 0

Output

What a pity!
Wonderful!
Wonderful!
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题