import std.stdio, std.string, std.conv;

void main() {
    auto input = getStdin!(int[])();
    for (int i = 0; i < input.length; i++) {
    	if (input[i] == 0) break;
    	writefln("Case %d: %d", i + 1, input[i]);
    }
}

T getStdin(T)() {
    string[] cmd;
    string line;
    while ((line = chomp(stdin.readln())) != "") cmd ~= line;
    return to!(T)(cmd);
}