# Minimum Number Of Steps To Form N

easy

1. You are given a number N. 2. You have to find the minimum number of operations needed to to reach N from 0. 3. operations allowed are - -> Double the number. -> Add one to the number.

## Constraints

1 <= arr[i] <= 10^6

## Format

### Input

A number N

### Output

Check the sample output and question video.

## Example

Sample Input

10

### Sample Output

5