box

Time Limit: 1000ms
Memory Limit: 32768KB
This problem will be judged on HDU. Original ID: 2143
64-bit integer IO format: %I64d      Java class name: Main

Description

One day, winnie received a box and a letter. In the letter, there are three integers and five operations(+,-,*,/,%). If one of the three integers can be calculated by the other two integers using any operations only once.. He can open that mysterious box. Or that box will never be open.

Input

The input contains several test cases.Each test case consists of three non-negative integers.

Output

If winnie can open that box.print "oh,lucky!".else print "what a pity!"

Sample Input

1 2 3

Sample Output

oh,lucky!

Source

Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .