3012. Coins (V)

Medium循环位运算

时间限制:2000 ms

内存限制:256 MiB

题面

In a strange shop, it never looks for a change and refuses to sell at a higher price, that is mean you have to pay the exact money for it. But you only now what you buy cost is no more than nn.

Now, you want to know the minmum coins you should bring with. The value of coin can be any positive integers.

输入格式

Input starts with an integer TT (T200 000)(T \le 200~000), denoting the number of test cases.

Each test case has an integer nn (1n2 147 483 6471 \le n \le 2~147~483~647) in a single line.

输出格式

For each case, print the case number and the result.

样例

输入

3
1
2
5

输出

Case 1: 1
Case 2: 2
Case 3: 3