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