function Main(input) {
  let args = input
    .trim()
    .split("\n")
    .map((x) => parseInt(x, 10));

  let n = args.length;
  for (let i = 0; i < n; i++) {
    if (args[i] === 0) {
      break;
    }
    console.log("Case " + String(i + 1) + ": " + String(args[i]));
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
