import scala.io.StdIn.readInt

object Main {

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