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

void main()
{
    string s;
    int i = 1;
    while( (s=readln.strip).length != 0) {
        int n = s.strip.to!int;
        writefln("Case %d: %d", i,n);
        i++;
    }
}