object Main extends App {
	override def main(args: Array[String]) = {
		val sc = new java.util.Scanner(System.in)
		var i:Int = 1;
		
		var cont:Boolean = true;
		while(cont){
			val n = sc.nextInt
			if(n == 0){
				cont = false;
			}else{
				println("Case " + i +": "+n)
				i = i+1
			}
		}
	}
}