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

class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			int num, i = 1;
			do {
				num = Integer.parseInt(br.readLine());
				if (num == 0) {
					break;
				} else {
					System.out.println("Case " + i + ": " + num);
					i++;
				}
			} while (true);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			int num, i = 1;
			do {
				num = Integer.parseInt(br.readLine());
				if (num == 0) {
					break;
				} else {
					System.out.println("Case " + i + ": " + num);
					i++;
				}
			} while (true);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			int num, i = 1;
			do {
				num = Integer.parseInt(br.readLine());
				if (num == 0) {
					break;
				} else {
					System.out.println("Case " + i + ": " + num);
					i++;
				}
			} while (true);
		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			int num, i = 1;
			do {
				num = Integer.parseInt(br.readLine());
				if (num == 0) {
					break;
				} else {
					System.out.println("Case " + i + ": " + num);
					i++;
				}
			} while (true);
		} catch (IOException e) {
			e.printStackTrace();
		}
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) try {
			int num, i = 1;
			do {
				num = Integer.parseInt(br.readLine());
				if (num == 0) {
					break;
				} else {
					System.out.println("Case " + i + ": " + num);
					i++;
				}
			} while (true);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			int num, i = 1;
			do {
				num = Integer.parseInt(br.readLine());
				if (num == 0) {
					break;
				} else {
					System.out.println("Case " + i + ": " + num);
					i++;
				}
			} while (true);
		} int num num i = 1; i 1 do {
				num = Integer.parseInt(br.readLine());
				if (num == 0) {
					break;
				} else {
					System.out.println("Case " + i + ": " + num);
					i++;
				}
			} while (true); true {
				num = Integer.parseInt(br.readLine());
				if (num == 0) {
					break;
				} else {
					System.out.println("Case " + i + ": " + num);
					i++;
				}
			} num = Integer.parseInt(br.readLine()) num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if (num == 0) {
					break;
				} else {
					System.out.println("Case " + i + ": " + num);
					i++;
				} num == 0 num 0 {
					break;
				} break; {
					System.out.println("Case " + i + ": " + num);
					i++;
				} System.out.println("Case " + i + ": " + num) System.out.println System.out System System.out "Case " + i + ": " + num ": " "Case " + i + ": " + num "Case " i ": " num i++ i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			int num, i = 1;
			do {
				num = Integer.parseInt(br.readLine());
				if (num == 0) {
					break;
				} else {
					System.out.println("Case " + i + ": " + num);
					i++;
				}
			} while (true);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}