object Main extends App {
  var i = 0
  val sb = StringBuilder.newBuilder
  for(x <- io.Source.stdin.getLines() if x != "0") {
    i += 1
    sb.append("Case ").append(i).append(": ")
      .append(x).append('\n')
  }
  print(sb.toString())
}
