import scala.io.Source

object Main
  def main(args:Array[String]) {
    for ((line, index)<- Source.stdin.getLines().toList.zipWithIndex; if (line != 0)) {
      println("Case " + index + ": " + line)
    }
  }
}