import scala.io.StdIn

/**
  * AOJ
  */
object Main {

  def main(args: Array[String]): Unit = {

    var i = 1
    while(true){
      val in = StdIn.readInt()
      if(in == 0){
        return
      } else {
        println("Case " + i + ": " + in)
      }
      i += 1
    }
 }
}