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