object Main{
    def main(args: Array[String]): Unit ={
        var i = 1
        while (true){
            var in = scala.io.StdIn.readInt()
            println("Case " + i + " " + in)
        }
    }
}