
object Main {
	def main(args: Array[String]): Unit = {
			val in = new java.util.Scanner(System.in)
			var result = ""
			var i = 0 
			import scala.util.control.Breaks
			val b = new Breaks
			b.breakable{
				while(true){
					i+=1
							val a = in.nextInt()
							if(a == 0) b.break
							result+="Case "+ i +": "+a+"\n"
				}
			}
			printf(result)
	}
}