object Main extends App {
  var i = 0
  val sb = StringBuilder.newBuilder
  Iterator.continually(io.StdIn.readLine())
    .map {
      l =>
        val x = l.map(_.toInt)
        sb.append("Case ").append(i).append(": ")
          .append(x).append('\n')
        i += 1
    }
  print(sb.toString())
}
