object Main {
    def main(args : Array[String]) : Unit = {
        var i = 1
        for (line <- io.Source.stdin.getLines() if line != "0") {
            println("Case " + i + ": " + line)
            i += 1
        }
    }
}