object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    
    def sub(n:Int,count:Int):Unit = {
      println(s"Case ${count}: ${n}")
      sub(sc.nextInt,count+1)
    }
    sub(sc.nextInt,0)
  }
}