import std.algorithm, std.array, std.container, std.range, std.bitmanip;
import std.numeric, std.math, std.bigint, std.random, core.bitop;
import std.string, std.conv, std.stdio, std.typecons;

void main()
{
  int x;
  for (auto i = 1; ; ++i) {
    x = readln.chomp.to!int;
    if (x == 0) break;
    writeln("Case ", i, ": ", x);
  }
}