const input = require('fs').readFileSync('/dev/stdin', 'utf8').trim()
const lines = input.trim().split("\n")
let i = 0
while (lines.length > 1) {
    const line = lines.shift()
    i++
    console.log(`Case ${i}: ${line}`)
}
