Diamond
Description
Jelly loves diamond. She likes to play the Diamond game when feeling unhappy. This game is very easy and silly somehow. Every time, there is a running diamond in the screen (rotating and changing position), and Jelly clicks mouse to catch it. If the mouse click point is inside of the diamond, then this diamond is caught, and Jelly will be very happy ;) In this game, the running diamond is represented by an angle (A) and an ending point (E). Note, the length of diamond (H) is fixed to 20. Fig.1 shows two diamonds with different angle:
Input
There are several test cases. Each test case consists of five integer values: angle (0 <= angle < 360), x-coordinate of ending point, y-coordinate of ending point, x-coordinate of mouse click point, y-coordinate of mouse click point.
Output
For each test case, print a smile face if the diamond is caught, print a sad face otherwise.
Sample
Input
0 20 0 10 0
0 20 0 5 5
90 0 20 10 0
90 0 20 10 10
Output
;)
;(
;(
;(
Comments