import java.io.*;

class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		int i=1;
	    while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
        	sb.append("Case "+i+": "+x+"\n");
    		i++;
            }
		System.out.print(sb);
	}
} import java.io.*; io.* java class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		int i=1;
	    while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
        	sb.append("Case "+i+": "+x+"\n");
    		i++;
            }
		System.out.print(sb);
	}
} Main public static void main(String[] args) throws Exception {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		int i=1;
	    while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
        	sb.append("Case "+i+": "+x+"\n");
    		i++;
            }
		System.out.print(sb);
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		int i=1;
	    while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
        	sb.append("Case "+i+": "+x+"\n");
    		i++;
            }
		System.out.print(sb);
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb=new StringBuilder(); sb new StringBuilder() int i=1; i 1 while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
        	sb.append("Case "+i+": "+x+"\n");
    		i++;
            } true {
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
        	sb.append("Case "+i+": "+x+"\n");
    		i++;
            } int x=Integer.parseInt(br.readLine()); x Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(x==0) break; x==0 x 0 break; sb.append("Case "+i+": "+x+"\n") sb.append sb "Case "+i+": "+x+"\n" x ": " "Case "+i+": "+x+"\n" "Case " i ": " x "\n" i++ i System.out.print(sb) System.out.print System.out System System.out sb String[] args args
import java.io.*;

class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		int i=1;
	    while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
        	sb.append("Case "+i+": "+x+"\n");
    		i++;
            }
		System.out.print(sb);
	}
}