import java.util.Scanner;

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

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