import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			int in = Integer.valueOf(s);
			if (in == 0)
				break;
			doMain(++inCnt, in);
		}
		System.exit(0);
	}

	private static void doMain(int inCnt, int in) {
		System.out.println("Case " + inCnt + ": " + in);

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			int in = Integer.valueOf(s);
			if (in == 0)
				break;
			doMain(++inCnt, in);
		}
		System.exit(0);
	}

	private static void doMain(int inCnt, int in) {
		System.out.println("Case " + inCnt + ": " + in);

	}
} Main public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			int in = Integer.valueOf(s);
			if (in == 0)
				break;
			doMain(++inCnt, in);
		}
		System.exit(0);
	} main {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			int in = Integer.valueOf(s);
			if (in == 0)
				break;
			doMain(++inCnt, in);
		}
		System.exit(0);
	} BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in)); stdIn new BufferedReader(new InputStreamReader(System.in)) String s; s int inCnt = 0; inCnt 0 while ((s = stdIn.readLine()) != null) {
			int in = Integer.valueOf(s);
			if (in == 0)
				break;
			doMain(++inCnt, in);
		} (s = stdIn.readLine()) != null (s = stdIn.readLine()) s stdIn.readLine() stdIn.readLine stdIn null {
			int in = Integer.valueOf(s);
			if (in == 0)
				break;
			doMain(++inCnt, in);
		} int in = Integer.valueOf(s); in Integer.valueOf(s) Integer.valueOf Integer s if (in == 0)
				break; in == 0 in 0 break; doMain(++inCnt, in) doMain ++inCnt inCnt in System.exit(0) System.exit System 0 String[] args args private static void doMain(int inCnt, int in) {
		System.out.println("Case " + inCnt + ": " + in);

	} doMain {
		System.out.println("Case " + inCnt + ": " + in);

	} System.out.println("Case " + inCnt + ": " + in) System.out.println System.out System System.out "Case " + inCnt + ": " + in ": " "Case " + inCnt + ": " + in "Case " inCnt ": " in int inCnt inCnt int in in public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			int in = Integer.valueOf(s);
			if (in == 0)
				break;
			doMain(++inCnt, in);
		}
		System.exit(0);
	}

	private static void doMain(int inCnt, int in) {
		System.out.println("Case " + inCnt + ": " + in);

	}
} public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			int in = Integer.valueOf(s);
			if (in == 0)
				break;
			doMain(++inCnt, in);
		}
		System.exit(0);
	}

	private static void doMain(int inCnt, int in) {
		System.out.println("Case " + inCnt + ": " + in);

	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int inCnt = 0;
		while ((s = stdIn.readLine()) != null) {
			int in = Integer.valueOf(s);
			if (in == 0)
				break;
			doMain(++inCnt, in);
		}
		System.exit(0);
	}

	private static void doMain(int inCnt, int in) {
		System.out.println("Case " + inCnt + ": " + in);

	}
}