Busy Beaver recently learned about the Collatz Conjecture! He has written down a sequence of $$$N$$$ positive integers $$$a_1, a_2, \ldots , a_N$$$ on a blackboard to experiment with and further his understanding of the conjecture. He also notices a counter left on a table and comes up with the following game to play.
The counter initially starts at the number $$$1$$$. A move consists of picking a number on the blackboard and replacing it:
Busy Beaver wants to play this game for as long as possible. Help him determine the maximum number of moves he can perform before he runs out of moves!
The first line contains the number of test cases $$$T$$$ ($$$1 \le T \le 500$$$).
The first line of each test case contains a single integer $$$N$$$ ($$$1 \le N \le 500$$$), the number of positive integers on the blackboard.
The second line of each test case contains $$$N$$$ positive integers $$$a_1, a_2, \ldots , a_N$$$ ($$$1 \le a_i \le 10^6$$$). It can be shown that any Collatz sequence started on a number at most $$$10^6$$$ will reach $$$1$$$ after at most $$$524$$$ moves. Additionally, it can also be shown that Busy Beaver will eventually run out of moves and that he never writes a number larger than $$$10^{18}$$$ on the blackboard.
The sum of $$$N$$$ across all test cases does not exceed $$$500$$$.
For each test case, output a single integer — the maximum number of moves that Busy Beaver can perform.
61352 4 6 8 1064 5 6 6 5 426837799 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 193 1 4 1 5 9 2 6 510123456 678910 111213 141516 171819 202122 232425 262728 293031 323334
40141643460
In the first test case, Busy Beaver only has one number on the blackboard which is the number $$$3$$$.
In the second test case, Busy Beaver cannot make any move since there are no odd numbers on the blackboard.
| Name |
|---|


