object Main {
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in)
    var in = sc.nextInt
    var i:Int = 1
    do {
      println("Case "+ i +": " + in)
      in = sc.nextInt
      i += 1
    } while ( in != 0)
  }
}