process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
  
  for(let i=0;i<lines.length;i++){
    if(lines[i] == 0){
      continue;
    }
    console.log('Case ' + (i + 1) + ': ' + lines[i]);
  }
});
