mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
26a72e347d
2100-2199
15 lines
260 B
C++
15 lines
260 B
C++
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int n,m;
|
|
while(scanf("%d%d",&n,&m)!=EOF)
|
|
{
|
|
if(n==0&&m==0)
|
|
break;
|
|
if((n*m)%2==0)
|
|
printf("Wonderful!\n");
|
|
else
|
|
printf("What a pity!\n");
|
|
}
|
|
}
|