For some integer , we define the beauty of its Collatz sequence by the number of division operations in the sequence.
The Collatz sequence is defined as follows:
Start with integer .
Repeat the process until is .
The first line contains single integer (1 \le t \le 1000) – the number of test cases.
The only line of each test case contains single integer (1 \le n \le 10^4) – the integer of the sequence.
For each test case output the beauty of the sequence starting with .
Example 1
In the first test case : n=10 has division operations in the sequence.
In the second test case n=5 has division operations in the sequence.
Subtask ( points) : No additional constraints.