Kozak Vus and the Magical Boots#11073

Kozak Vus and the Magical Boots

1 second
256 megabytes
Very easy

Friends of Cossack Vus have received a secret letter containing an ancient blueprint for magical boots. These boots enable the wearer to accelerate to incredible speeds, starting at an initial speed of meter per second.

When wearing these magical boots, if a person's current speed is meters per second, they can cast one of two spells:

Determine the minimum number of spells needed for a person in these magical boots to reach exactly meters per second.

Input

The input consists of a single integer (1 \leq k \leq 10^{18}) — the target speed to be achieved.

It is guaranteed that reaching the specified speed is possible in a finite number of steps.

Output

Output a single integer — the minimum number of spells required to reach the target speed.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

Example 4

Loading
Loading

Note

In the first example, the initial speed is already , so no spells are needed.

In the second example, you can use the first type of spell to increase the speed by meter per second, reaching meters per second.

In the third example, you can apply the first spell, then the second spell, and finally the first spell again. The speed progression will be: 1 \rightarrow 2 \rightarrow 5 \rightarrow 10. It can be demonstrated that fewer spells are insufficient to achieve this speed.