For each test case, output "Case #x: y" in one line (without quotes), where x indicates the case number starting from 1, and y (

) denotes whether or not the graphs exist in this test case.
If the graphs exist, then output (n + 1) extra lines.
The first n lines represent the graph G, where each line contains a binary string of length n. In the i-th line, the j-th character

is '1' when the i-th vertex and the j-th one are adjacent, or otherwise, in case they are not adjacent,

is '0'. Note that

must be '0' and

must be the same as

.
The last line contains n space-separated integers

,

,

,

, representing an isomorphism of graphs G and H in which the i-th vertex in the graph G is mapped to the

-th vertex in the complement graph H. Note that every two consecutive integers in one line should be separated by a single space,

.