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

void main() {
   int count;
   while (true) {
      auto x = readln.chomp;
      if (x == "0") break;
      writeln("Case " ~ to!string(++count) ~ ": " ~ x);
   }
}