fun main(args: Array<String>) {
	val ans = mutableListOf<String>()

	for (i in 1 .. Int.MAX_VALUE) {
		val x = readLine()!!.toInt()
		if (x == 0) break

		ans.add("Case $i: $x")
	}

	println(ans.joinToString("\n"))
}
