Skip to main content
LIVE CONTEST: ALGOR Contest: Round #4 (Special Challenge) is live now!
ALGOR Contest: Round #4 (Special Challenge)
Problem F · 250 points · ICPC rules

~/algor $ cat contests/round-4/F

F. Exponent of a power of two

1000 ms 64 MB

A positive integer $n$ is given that equals some integer power of $2$ ($n = 2^{k}$, $k \ge 0$). Find the exponent $k$.

Finding the exponent from a power of two

Input

One integer $n$.

Output

One integer — $k$.

Note

$1 \le n \le 2^{30}$

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.