import java.io.*;

public class Main {
	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int i = 1;
		try {
			while ((line = reader.readLine()) != null) {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			}
		} catch (IOException e) {
		}
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int i = 1;
		try {
			while ((line = reader.readLine()) != null) {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			}
		} catch (IOException e) {
		}
	}
} Main public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int i = 1;
		try {
			while ((line = reader.readLine()) != null) {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			}
		} catch (IOException e) {
		}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int i = 1;
		try {
			while ((line = reader.readLine()) != null) {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			}
		} catch (IOException e) {
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String line; line int i = 1; i 1 try {
			while ((line = reader.readLine()) != null) {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			}
		} catch (IOException e) {
		} catch (IOException e) {
		} IOException e {
		} {
			while ((line = reader.readLine()) != null) {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			}
		} while ((line = reader.readLine()) != null) {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			} (line = reader.readLine()) != null (line = reader.readLine()) line reader.readLine() reader.readLine reader null {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			} if (line.equals("0"))
					break; line.equals("0") line.equals line "0" break; System.out.println("Case " + i + ": " + line) System.out.println System.out System System.out "Case " + i + ": " + line ": " "Case " + i + ": " + line "Case " i ": " line i++ i String[] args args public class Main {
	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int i = 1;
		try {
			while ((line = reader.readLine()) != null) {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			}
		} catch (IOException e) {
		}
	}
} public class Main {
	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int i = 1;
		try {
			while ((line = reader.readLine()) != null) {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			}
		} catch (IOException e) {
		}
	}
} Main
import java.io.*;

public class Main {
	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int i = 1;
		try {
			while ((line = reader.readLine()) != null) {
				if (line.equals("0"))
					break;
				System.out.println("Case " + i + ": " + line);
				i++;
			}
		} catch (IOException e) {
		}
	}
}