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', () => {
 var i = 0;
 while(true){
   if(lines[i] == 0){
     break;
   }
   var n = lines[i];
   console.log("Case " + Number(i+1) + ": " + n);
   i++;
 }
});
