import java.util.Scanner;

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

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

	}
} Main private void calc(){
		Scanner scanner = new Scanner(System.in);
		short i=1;
		while(true){
			int x=scanner.nextInt();
			
			if(x==0)break;
			
			System.out.println("Case "+i+": "+x);
			i++;
			
		}
		
	} calc {
		Scanner scanner = new Scanner(System.in);
		short i=1;
		while(true){
			int x=scanner.nextInt();
			
			if(x==0)break;
			
			System.out.println("Case "+i+": "+x);
			i++;
			
		}
		
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) short i=1; i 1 while(true){
			int x=scanner.nextInt();
			
			if(x==0)break;
			
			System.out.println("Case "+i+": "+x);
			i++;
			
		} true {
			int x=scanner.nextInt();
			
			if(x==0)break;
			
			System.out.println("Case "+i+": "+x);
			i++;
			
		} int x=scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner 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) {
		Main run =new Main();
		run.calc();

	} main {
		Main run =new Main();
		run.calc();

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

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

	}
} Main
import java.util.Scanner;

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

	}
}