fun main(args: Array<String>) {
    for (i in 1..10000) {
        val inStr: String? = readLine()
        val x: Int? = inStr?.toInt()
        if (x == null) {
            return
        }
        if (x == 0) {
            return
        }
        println("Case %d: %d".format(i, x))
    }
}

