import scala.io.StdIn.readInt

object Main {

  def main(args: Array[String]) = {
      var n = 0
      var i = 1
      do {
        n = readInt
        println("Case " + i + ": " + n)
        i += 1
      } while( n != 0)
  }
}