You are a lover of bacteria. You want to raise some bacteria in a box. 

Initially, the box is empty. Each morning, you can put any number of bacteria into the box. And each night, every bacterium in the box will split into two bacteria. You hope to see exactly *x* bacteria in the box at some moment. 

What is the minimum number of bacteria you need to put into the box across those days?
The only line containing one integer *x* (1 ≤ *x* ≤ 10<sup class="upper-index">9</sup>).
x = int(input())  # Read the input number

bacteria = 1  # Initial number of bacteria
days = 0  # Number of days needed

while bacteria < x:
    bacteria *= 2  # Double the number of bacteria
    days += 1  # Increment the number of days

print(days)  # Print the number of days needed
