var lines = require('fs').readFileSync('/dev/stdin', 'UTF-8');
lines = lines.split("\n")
lines.pop()
lines.pop()

// 0以降を弾く

lines = lines.map((line) => {
  return Number.parseInt(line);
})
for(var i=0;i<lines.length;i++){
  console.log("Case "+(i+1)+": "+lines[i])
}
