#t18. 计算兔子繁殖到N对所需最少月份

计算兔子繁殖到N对所需最少月份

Minimum Months for Rabbits to Reach N Pairs

Problem Description

A pair of rabbits, starting from the 33rd month after birth, gives birth to one pair of rabbits every month. A baby rabbit, after it grows to the 33rd month, also gives birth to one pair every month. Suppose no rabbit ever dies — for the pair of rabbits born in the 11st month, at least in which month will the total number of rabbits reach NN pairs?

Input Format

The input gives one positive integer NN not exceeding 1000010000 on one line.

Output Format

Output on one line the minimum number of months needed for the total number of rabbits to reach NN.

Sample Input

30

Sample Output

9

Constraints

1≤N≤100001 \le N \le 10000