function Main(input) {
    input = input.split("\n");
    for (j=0; j < input.length-1; j++) {
        var x = String(input[j])
        var i = String(j+1)
        if (x === "0") {
            break;
        } else {
            console.log("Case " + i + ": " + x)
        }
    }
}

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