import java.io.*;

class Main{
    public static void main(String[] args)throws IOException{
        int i = 0, x;

        InputStreamReader isr =new InputStreamReader(System.in);
   		BufferedReader br =new BufferedReader(isr);
    	String buf = br.readLine();
    	x = Integer.parseInt(buf);
        
        while(true) {
        	if (x == 0) break;
            i++;
        	System.out.printf("Case %d: %d\n", i, x);
        	buf = br.readLine();
    		x = Integer.parseInt(buf);
    	}
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args)throws IOException{
        int i = 0, x;

        InputStreamReader isr =new InputStreamReader(System.in);
   		BufferedReader br =new BufferedReader(isr);
    	String buf = br.readLine();
    	x = Integer.parseInt(buf);
        
        while(true) {
        	if (x == 0) break;
            i++;
        	System.out.printf("Case %d: %d\n", i, x);
        	buf = br.readLine();
    		x = Integer.parseInt(buf);
    	}
    }
} Main public static void main(String[] args)throws IOException{
        int i = 0, x;

        InputStreamReader isr =new InputStreamReader(System.in);
   		BufferedReader br =new BufferedReader(isr);
    	String buf = br.readLine();
    	x = Integer.parseInt(buf);
        
        while(true) {
        	if (x == 0) break;
            i++;
        	System.out.printf("Case %d: %d\n", i, x);
        	buf = br.readLine();
    		x = Integer.parseInt(buf);
    	}
    } main {
        int i = 0, x;

        InputStreamReader isr =new InputStreamReader(System.in);
   		BufferedReader br =new BufferedReader(isr);
    	String buf = br.readLine();
    	x = Integer.parseInt(buf);
        
        while(true) {
        	if (x == 0) break;
            i++;
        	System.out.printf("Case %d: %d\n", i, x);
        	buf = br.readLine();
    		x = Integer.parseInt(buf);
    	}
    } int i = 0 i 0 x; x InputStreamReader isr =new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br =new BufferedReader(isr); br new BufferedReader(isr) String buf = br.readLine(); buf br.readLine() br.readLine br x = Integer.parseInt(buf) x Integer.parseInt(buf) Integer.parseInt Integer buf while(true) {
        	if (x == 0) break;
            i++;
        	System.out.printf("Case %d: %d\n", i, x);
        	buf = br.readLine();
    		x = Integer.parseInt(buf);
    	} true {
        	if (x == 0) break;
            i++;
        	System.out.printf("Case %d: %d\n", i, x);
        	buf = br.readLine();
    		x = Integer.parseInt(buf);
    	} if (x == 0) break; x == 0 x 0 break; i++ i System.out.printf("Case %d: %d\n", i, x) System.out.printf System.out System System.out "Case %d: %d\n" i x buf = br.readLine() buf br.readLine() br.readLine br x = Integer.parseInt(buf) x Integer.parseInt(buf) Integer.parseInt Integer buf String[] args args
import java.io.*;

class Main{
    public static void main(String[] args)throws IOException{
        int i = 0, x;

        InputStreamReader isr =new InputStreamReader(System.in);
   		BufferedReader br =new BufferedReader(isr);
    	String buf = br.readLine();
    	x = Integer.parseInt(buf);
        
        while(true) {
        	if (x == 0) break;
            i++;
        	System.out.printf("Case %d: %d\n", i, x);
        	buf = br.readLine();
    		x = Integer.parseInt(buf);
    	}
    }
}