{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"Yi Sima was one of the best counselors of Cao Cao. He likes to play a funny game himself. It looks like the modern Sudoku, but smaller.\n\nActually, Yi Sima was playing it different. First of all, he tried to generate a $4\\times 4$ board with every row contains $1$ to $4$, every column contains $1$ to $4$.\nAlso he made sure that if we cut the board into four $2\\times 2$ pieces, every piece contains $1$ to $4$.\n\nThen, he removed several numbers from the board and gave it to another guy to recover it. As other counselors are not as smart as Yi Sima, Yi Sima always made sure that the\nboard only has one way to recover.\n\nActually, you are seeing this because you\u0027ve passed through to the Three-Kingdom Age. You can recover the board to make Yi Sima happy and be promoted. Go and do it!!!"}},{"title":"Input","value":{"format":"MD","content":"The first line of the input gives the number of test cases, $T$($1\\leq T\\leq 100$). $T$ test cases follow. Each test case starts with an empty line followed by $4$ lines.\nEach line consist of $4$ characters. Each character represents the number in the corresponding cell (one of `1`, `2`, `3`, `4`). `*` represents that number was removed by Yi Sima.\n\nIt\u0027s guaranteed that there will be exactly one way to recover the board."}},{"title":"Output","value":{"format":"MD","content":"For each test case, output one line containing `Case #x:`, where $x$ is the test case number (starting from $1$).\nThen output $4$ lines with $4$ characters each. indicate the recovered board."}},{"title":"Sample 1","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3\n\n****\n2341\n4123\n3214\n\n*243\n*312\n*421\n*134\n\n*41*\n**3*\n2*41\n4*2*\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase #1:\n1432\n2341\n4123\n3214\nCase #2:\n1243\n4312\n3421\n2134\nCase #3:\n3412\n1234\n2341\n4123\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}