-- 1_2_B
main = getContents >>= func . zip [1..] . lines

func ((_, "0"):rest)    =   return ()
func ((n, s):rest)      =   do putStrLn $ "Case " ++ show n ++ ": " ++ s
                               func rest