object Main {
  def main (args: Array[String]) {
    var count:Int = 0
    for(line <- scala.io.Source.stdin.getLines() if line != "0"){
        count += 1;
        println("Case " +  count + ": " + line);
    }
  }
}