Note:There is no dependency between this problem and problem Hack of Multiply 2 Divide 2.
Frank_DD has a sequence a of length n.
For each operation, he selects a number ai(1≤i≤n) and changes it to ⌊2ai⌋.
Frank_DD wants to know the minimum number of operations to change the sequence a to a non-descending sequence.