function Main(input) {
  input = input.split('\n').map(Number);
  for(let i = 0; i <= input.length; i++){
    if(input[i] !==0){
      console.log(`Case ${i + 1}: ${input[i]}`);
    } else {
      break;
    }    
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
