"use strict";
var print=function(line){
    for(var i=0;line[i] != 0;i++)
        console.log("Case "+(i+1)+": "+line[i]);
};
function Main(input) {
    input=input.split("\n").map(Number);
    print(input);
}
function debug(){
	var input = document.getElementById("input").value;
	Main(input);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));