import std.stdio,std.conv,std.algorithm,std.array;

int			oneint(){ return readln().split().map!(to!int).array()[0];}	//read from stdin as only one int
void main(){	for(int i=1,x;(x = oneint())!=0;i++){ writeln("Case ",i,": ",x); } }