object Main {
  def main(args: Array[String]): Unit = {
    io.Source.stdin.getLines().map(_.toInt).toList.zipWithIndex().foreach { case (x, i) =>
      if(x != 0) println(s"Case $i: $x") else System.exit(0)
    }
  }
}
