object Main {
  def main(args: Array[String]): Unit = {
    Iterator.continually(io.StdIn.readInt())
      .takeWhile(_ > 0)
      .zipWithIndex
      .foreach { case (x, i) => println(s"Case ${i + 1}: $x") }
  }
}