This is interactive problem.
In the Interactive Casino game "Binary Roulette" is very popular. Here are the rules of the game.
You found on the Algoleaks site that each next integer on the sloth machine is generated using the formula . Source of x1, unluckly, on this site is not revealed.
Your goal is to ensure the victory.
Your program will receive on the input one integer — number of tokens You currently have or - 1 in case when game is over by some reason.
If you received - 1, immediately exit your program with code 0 (otherwise you may get the random verdict from the system). Otherwise, if you received integer T > 0, print one integer between 1 and T, inclusively — your next bet. Dont forget to print end-of-line character and flush the output.