function main(input){
    let numarray=input.split("\n").map(Number);
	let i=0;
	while (numarray[i]!=0) {
        console.log('Case ' + (i+1) + ': ' + numarray[i]);
        i += 1;
	}
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));
