-- | Main entry point to the application.
module Main where

import Control.Applicative
import Control.Monad
import Data.List
import Debug.Trace
import Text.Printf

rInt :: String -> Int
rInt str = read str :: Int

-- | The main entry point.
main :: IO ()
main = do
    --[w, h, x, y, r] <- (map rInt . words) <$> getLine
    s <- getContents
    let lst = map rInt $ lines s
    forM_ [0..(length lst - 2)] $ \i -> do
        printf "Case %d:%d\n" (i+1) (lst !! i)