PONDO1 - Pondo One
The annual animal race is taking place and the two fastest animals are competing today, the Pondo and the Pundu. The Pondo has a step size of x
whilst the Pundu has a step size of y
(both in metres). The size of the race track is L
metres.
Unfortunately, the 'Association of Race Swindling Eels' has tricked the world into thinking that Pundu are a real animal, but they are really robots built at the dawn of time to obey their Eel owners so they can gamble in races with perfect accuracy. But the Eels have made a compromise, they formatted the race so that it looks like a fair race (presumably so people will gamble more money):
The race works like so, the Pondo will take a step (covering a distance of x
), then after the Pondo has finished its step the Pundu will as many steps (of size y
) that it needs to be further or equal to the Pondo in distance away from the finish line (it is so infinitely fast that the Pondo will be stationary during the time it makes steps).
Given x
, y
and L
, determine the outcome for the Pondo, either WIN
or LOSS
.
Input
Your first and only line of input will contain three space-separated integers, x
, y
and L
respectively (all integers are positive and less than one billion).
Output
Your only line of output should contain a string WIN
or LOSS
, the former should only be output if the Pondo won the race.
Sample Cases
Input 1 1 2 2 Output 1 LOSS
Input 2 5 7 15 Output 2 WIN
Added by: | jslew |
Date: | 2021-12-28 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |