import java.util.Scanner;

public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int x;
		int i = 1;
	    for(;;){
	    	x = s.nextInt();
	    	if(x == 0) break;
	    	System.out.println("Case " + i + ": " + x);
	    	i++;
	    }
	    
	}
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int x;
		int i = 1;
	    for(;;){
	    	x = s.nextInt();
	    	if(x == 0) break;
	    	System.out.println("Case " + i + ": " + x);
	    	i++;
	    }
	    
	}
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} Main void run(){
		Scanner s = new Scanner(System.in);
		int x;
		int i = 1;
	    for(;;){
	    	x = s.nextInt();
	    	if(x == 0) break;
	    	System.out.println("Case " + i + ": " + x);
	    	i++;
	    }
	    
	} run {
		Scanner s = new Scanner(System.in);
		int x;
		int i = 1;
	    for(;;){
	    	x = s.nextInt();
	    	if(x == 0) break;
	    	System.out.println("Case " + i + ": " + x);
	    	i++;
	    }
	    
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int x; x int i = 1; i 1 for(;;){
	    	x = s.nextInt();
	    	if(x == 0) break;
	    	System.out.println("Case " + i + ": " + x);
	    	i++;
	    } ; {
	    	x = s.nextInt();
	    	if(x == 0) break;
	    	System.out.println("Case " + i + ": " + x);
	    	i++;
	    } {
	    	x = s.nextInt();
	    	if(x == 0) break;
	    	System.out.println("Case " + i + ": " + x);
	    	i++;
	    } x = s.nextInt() x s.nextInt() s.nextInt s if(x == 0) break; x == 0 x 0 break; System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x i++ i public static void main(String[] args) {
		
		new Main().run();
		
	} main {
		
		new Main().run();
		
	} new Main().run() new Main().run new Main() String[] args args public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int x;
		int i = 1;
	    for(;;){
	    	x = s.nextInt();
	    	if(x == 0) break;
	    	System.out.println("Case " + i + ": " + x);
	    	i++;
	    }
	    
	}
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int x;
		int i = 1;
	    for(;;){
	    	x = s.nextInt();
	    	if(x == 0) break;
	    	System.out.println("Case " + i + ": " + x);
	    	i++;
	    }
	    
	}
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} Main
import java.util.Scanner;

public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int x;
		int i = 1;
	    for(;;){
	    	x = s.nextInt();
	    	if(x == 0) break;
	    	System.out.println("Case " + i + ": " + x);
	    	i++;
	    }
	    
	}
	public static void main(String[] args) {
		
		new Main().run();
		
	}
}