function main(input){
    let nums = input.split('\n');
    let length = nums.length;
    for(let i=0;i<length;i++){
        if(parseInt(nums[i])===0) break;
        console.log("Case "+(i+1)+": "+nums[i]);
    }

}


main(require('fs').readFileSync('/dev/stdin', 'utf8'));
