fun main(args: Array<String>) {
    
    var i = 1
    while (true) {
        val x = readLine()!!.toInt()
        if (x == 0)
            break
        println("Case %d: %d".format(i, x))
        i++
    }
}
