import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  var i = 1
  while (sc.hasNext()) {
    val n = sc.nextInt()
    if (n != 0) {
      println("Case " + i + ": " + n)
      i += 1
    }
  }
}