401519: GYM100488 F Two Envelopes

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

F. Two Envelopestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

Mike has two envelopes. He thought up a random integer in the segment (he could think up every number from the segment with equal probability) and put exactly this amount of roubles into one of the envelopes and the double amount into the second one. Then he suggested Constantine to play the game: Constantine can open one envelope and then either take its contents or take the contents of another envelope, by his choice.

Constantine has opened one of these envelopes and has discovered c roubles there. Should he take another envelope, if he wants to maximize the expected prize?

Input

The only line contains three integers a, b and c (1 ≤ a, b, c ≤ 109), separated by spaces — the bounds of the segment from which Mike thought up his random number and the amount of roubles in the envelope opened by Constantine. It is guaranteed that the situation described by the input is possible.

Output

Output «Take another envelope», if it's advantageous for Constantine to take another envelope, and «Stay with this envelope», if it's advantageous for him to stay with the one he has already opened.

ExamplesInput
3 5 3
Output
Take another envelope
Input
4 6 10
Output
Stay with this envelope

加入题单

上一题 下一题 算法标签: