import java.util.Scanner

fun main(args :Array<String>){
    val cin = Scanner(System.`in`)
    var index = 1
    
    while(true){
	val data = cin.nextInt()
	if(data == 0){
	    break
	}else{
	    println("Case $index: $data")
	    index++
	}
    }
}

