import java.io.*;

class Main {
	public static void main(String[] args) throws java.io.IOException {

		BufferedReader input = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder str = new StringBuilder();

		int i = 0;

		while (true) {
			i++;
			String tmp = input.readLine();
			int x = Integer.parseInt(tmp);

			if (x == 0)
				break;

			str.append("Case " + i + ": " + x + "\n");

		}

		System.out.print(str);

	}
} import java.io.*; io.* java class Main {
	public static void main(String[] args) throws java.io.IOException {

		BufferedReader input = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder str = new StringBuilder();

		int i = 0;

		while (true) {
			i++;
			String tmp = input.readLine();
			int x = Integer.parseInt(tmp);

			if (x == 0)
				break;

			str.append("Case " + i + ": " + x + "\n");

		}

		System.out.print(str);

	}
} Main public static void main(String[] args) throws java.io.IOException {

		BufferedReader input = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder str = new StringBuilder();

		int i = 0;

		while (true) {
			i++;
			String tmp = input.readLine();
			int x = Integer.parseInt(tmp);

			if (x == 0)
				break;

			str.append("Case " + i + ": " + x + "\n");

		}

		System.out.print(str);

	} main {

		BufferedReader input = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder str = new StringBuilder();

		int i = 0;

		while (true) {
			i++;
			String tmp = input.readLine();
			int x = Integer.parseInt(tmp);

			if (x == 0)
				break;

			str.append("Case " + i + ": " + x + "\n");

		}

		System.out.print(str);

	} BufferedReader input = new BufferedReader(new InputStreamReader(
				System.in)); input new BufferedReader(new InputStreamReader(
				System.in)) StringBuilder str = new StringBuilder(); str new StringBuilder() int i = 0; i 0 while (true) {
			i++;
			String tmp = input.readLine();
			int x = Integer.parseInt(tmp);

			if (x == 0)
				break;

			str.append("Case " + i + ": " + x + "\n");

		} true {
			i++;
			String tmp = input.readLine();
			int x = Integer.parseInt(tmp);

			if (x == 0)
				break;

			str.append("Case " + i + ": " + x + "\n");

		} i++ i String tmp = input.readLine(); tmp input.readLine() input.readLine input int x = Integer.parseInt(tmp); x Integer.parseInt(tmp) Integer.parseInt Integer tmp if (x == 0)
				break; x == 0 x 0 break; str.append("Case " + i + ": " + x + "\n") str.append str "Case " + i + ": " + x + "\n" x ": " "Case " + i + ": " + x + "\n" "Case " i ": " x "\n" System.out.print(str) System.out.print System.out System System.out str String[] args args
import java.io.*;

class Main {
	public static void main(String[] args) throws java.io.IOException {

		BufferedReader input = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder str = new StringBuilder();

		int i = 0;

		while (true) {
			i++;
			String tmp = input.readLine();
			int x = Integer.parseInt(tmp);

			if (x == 0)
				break;

			str.append("Case " + i + ": " + x + "\n");

		}

		System.out.print(str);

	}
}