There are multiple test cases, terminated by a line "0".
For each test case, the first line contains one integer .
In following n lines, each line contains three integers .
输出格式
For each case, output "Case #k: s", where is the case number counting from , and is a string consisting of n character. If the area in the charge of the student isn't infinite, the character is "0", else it's "1".