【题目】
Problem E: Binary Number
Time Limit: 2 Sec Memory Limit: 256 MB
Submit: 29 Solved: 13
[Submit][Status][Web Board]
Description
Little walrus Fangy loves math very much. That's why when he is bored he plays with a number performing some operations.
Fangy takes some positive integer x and wants to get a number one from it. While x is not equal to 1, Fangy repeats the following action: if x is odd, then he adds 1 to it, otherwise he divides x by 2. Fangy knows that for any positive integer number the process ends in finite time.
How many actions should Fangy perform to get a number one from number x?
Input
The first line contains a positi