{-# LANGUAGE ScopedTypeVariables #-}

import Control.Applicative
import Data.List

main = do
  s <- getContents
  mapM_ putStrLn . map (\(n, m) ->
    "Case " ++ show n ++ ": " ++ m) . zip [1..] . init $ words s