The creator made the Universe in a mysterious way. At the same time, he used the decimal system and liked round numbers.
Scott Adams
Many people know about the base- (binary system), and almost everyone knows about the base- (decimal system). But what is this strange base called ""? An integer written in base "" is a sequence of digits (b_i), written from right to left. Each digit is either or (no negative digits!), and the following equality must hold:
It turns out that any integer, including negative numbers, has a unique representation in such a base "" system. Your task is to find this representation.
The first line contains the number of test cases (n \leq 10000). Each of the next lines contains a single integer, which lies between and .
For each test case, output a single line starting with the message "Case #x:", followed by the representation of the given number in base "" without leading zeros.
Example 1