Uncle Ernie the Magician

Uncle Ernie is a brilliant magician. The other day he thrilled the theater by guessing a number that someone in the audience had thought. The dialog that took place during the show was more or less like this:

Indeed, 732 was the number written in the envelope, as the good-looking girl confirmed.

Can you emulate Uncle Ernie and write a magical program that guesses the number that the computer thinks? The computer will think a number, will perform the same calculations on this number as Bill and will tell you the result. You have to “guess” the original number.

Input

Input consists of several integer numbers: the results obtained by the computer. All them will be between 0 and 23112^{31}-1.

Output

For every given integer, print the original number thought by the computer. You have the guarantee that the computer will not try to cheat you.

Problem information

Author: Jordi Petit

Generation: 2026-01-25T11:13:00.250Z

© Jutge.org, 2006–2026.
https://jutge.org