object Main extends App {
	var cnt = 0
	for(line <- io.Source.stdin.getLines()) {
		cnt = cnt + 1
		var num = line.toInt
	    val n = num match {
	    	case 0 => ""
	    	case x => x
	    }
	    if(n != "") {
	    	println("Case " + cnt + ": " + n)
	    }
	}
}
