import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = "";
		int i = 1;
		while(true){
			str = br.readLine();
			if(str.equals("0")){
				break;
			}//if
			System.out.println("Case " + i + ": " + str);
			i++;
		}//while
		br.close();
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = "";
		int i = 1;
		while(true){
			str = br.readLine();
			if(str.equals("0")){
				break;
			}//if
			System.out.println("Case " + i + ": " + str);
			i++;
		}//while
		br.close();
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = "";
		int i = 1;
		while(true){
			str = br.readLine();
			if(str.equals("0")){
				break;
			}//if
			System.out.println("Case " + i + ": " + str);
			i++;
		}//while
		br.close();
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = "";
		int i = 1;
		while(true){
			str = br.readLine();
			if(str.equals("0")){
				break;
			}//if
			System.out.println("Case " + i + ": " + str);
			i++;
		}//while
		br.close();
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = ""; str "" int i = 1; i 1 while(true){
			str = br.readLine();
			if(str.equals("0")){
				break;
			}//if
			System.out.println("Case " + i + ": " + str);
			i++;
		}//while true {
			str = br.readLine();
			if(str.equals("0")){
				break;
			}//if
			System.out.println("Case " + i + ": " + str);
			i++;
		} str = br.readLine() str br.readLine() br.readLine br if(str.equals("0")){
				break;
			}//if str.equals("0") str.equals str "0" {
				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 br.close() br.close br String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = "";
		int i = 1;
		while(true){
			str = br.readLine();
			if(str.equals("0")){
				break;
			}//if
			System.out.println("Case " + i + ": " + str);
			i++;
		}//while
		br.close();
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = "";
		int i = 1;
		while(true){
			str = br.readLine();
			if(str.equals("0")){
				break;
			}//if
			System.out.println("Case " + i + ": " + str);
			i++;
		}//while
		br.close();
	}
} Main
import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = "";
		int i = 1;
		while(true){
			str = br.readLine();
			if(str.equals("0")){
				break;
			}//if
			System.out.println("Case " + i + ": " + str);
			i++;
		}//while
		br.close();
	}
}