var input=require("fs").readFileSync("/dev/stdin","utf8");
var i;

input=input.split("\n");
for(i=0;i<10000;i++){
    if(input[i]==0){
        break;
    }
    console.log("Case %d:%d",i+1,input[i]);
}
