main = solve 1
    where solve n = do
            x <- readLn
            if (x == 0) then return ()
            else do
                putStrLn $ "Case " ++ show n ++ ": " ++ show x
                solve (n + 1)