Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/while/exponent-of-a-power-of-two

Exponent of a power of two

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Easy 1000 ms 64 MB 24%
Share

A positive integer is given that equals some integer power of (, ). Find the exponent .

Finding the exponent from a power of two

Input

One integer .

Output

One integer — .

Note

Examples

Input #1
1
Output #1
0
Input #2
2
Output #2
1

Sign in to submit a solution

Signing up is free and takes a minute.