function main(input) {
  var temp = input.split('\n');

  for (var i =0; i < temp.length; i++) {
    if(parseInt(temp[i]) == 0){
      break;
    }
    console.log("Case"+' '+(i+1)+": "+temp[i]);
  }
}

var x = require('fs').readFileSync('/dev/stdin', 'utf-8');
main(x);
