OJ-Problems-Source/HDOJ/2147_autoAC.cpp
2016-08-22 00:08:26 +08:00

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");
}
}