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

public class Main {
	
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int i = 1;
			while (true) {
				String str = reader.readLine();
				if ("0".equals(str)) {
					break;
				}
				System.out.println("Case " + i + ": " + str);
				i++;
			}
		} 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 public class Main {
	
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int i = 1;
			while (true) {
				String str = reader.readLine();
				if ("0".equals(str)) {
					break;
				}
				System.out.println("Case " + i + ": " + str);
				i++;
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

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

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

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

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

}