import scala.io.StdIn._
object Main {
    def main(args : Array[String]) : Unit = {
        var input = List[String]()
        var line = readLine()
        while (line != "0") {
            input = input :+ line
            line = readLine()
        }
        var i = 1
        for (str <- input) {
            println("Case " + i + ": " + str)
            i += 1
        }
    }
}