Woburn Challenge 2017-18 Round 3 - Junior Division

At last, your YouTube
channel is really
taking off in popularity! You currently have
To reward your dedicated viewers and encourage more subscriptions, you'd
like to put out a special video when your subscriber count reaches the
next "milestone" quantity larger than its current value. A milestone is
a power of
Your subscriber count is quickly growing, and you'd like to estimate how much time you'll have to prepare your special video. As such, you'd like to determine the number of additional subscribers required to hit the next milestone count!
Input Specification
The first and only line of input consists of a single integer,
Output Specification
Output a single integer, the number of additional subscribers required to hit the next milestone.
Sample Input 1
6
Sample Output 1
4
Sample Input 2
10
Sample Output 2
90
Sample Explanation 2
In the first case, the next milestone is
In the second case, the next milestone is
Comments