IROB - I Robot

Boda, Morsy, Anas and Aly are making Robot for their GP … this robot is doing a lot of things, it can go to any place and discover everything by itself, it has fantastic Artificial intelligence, there is a small problem in this robot, they want the robot to take Decimal number and change it to binary number .. This task is very easy so you will do it to fix this problem.

Input

The first line of input is the number of cases T. For each test case there is an integer in each line denotes the decimal number. The input numbers are not smaller than 0 and are not greater than 2^32

Output

For each line of input, print "Case_#i:_X" where "X" is the binary number, "i" is the number of the test case (starting with 1) and "_" is white space. the number of bits must be divisible by 4, and after every 4 bits there is "," except after last bit. Each output should be in a separate line.

Input:

4
0
1
100
10000

Output:

Case #1: 0000
Case #2: 0001
Case #3: 0110,0100
Case #4: 0010,0111,0001,0000

 


Added by:Sharaf
Date:2013-02-07
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All
Resource:2013 acmASCIS Level 1 Contest

hide comments
2013-02-13 20:22:13 abdelkarim
trivial one !!
2013-02-13 20:22:13 Ouditchya Sinha
Finally AC! Try Test Cases -
4
7
8
15
16


Last edit: 2013-02-13 14:56:41
2013-02-13 20:22:13 !!.Nginx.!!
why m i getting WA continuously, my answer is correct for given test cases.
Is there any tricky case?????? Plz help..!!!
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.