public class Main {
			
				
		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int x;
		int i = 0;
		while(true){
		x = scan.nextInt();
		i+= 1;
			if(1<=x && x<= 10000){
			System.out.println("Case "+i+": "+x);
			
			}
		if(x == 0){
			break;
		}
		}
		}
					
					
					
		} public class Main {
			
				
		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int x;
		int i = 0;
		while(true){
		x = scan.nextInt();
		i+= 1;
			if(1<=x && x<= 10000){
			System.out.println("Case "+i+": "+x);
			
			}
		if(x == 0){
			break;
		}
		}
		}
					
					
					
		} Main public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int x;
		int i = 0;
		while(true){
		x = scan.nextInt();
		i+= 1;
			if(1<=x && x<= 10000){
			System.out.println("Case "+i+": "+x);
			
			}
		if(x == 0){
			break;
		}
		}
		} main {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int x;
		int i = 0;
		while(true){
		x = scan.nextInt();
		i+= 1;
			if(1<=x && x<= 10000){
			System.out.println("Case "+i+": "+x);
			
			}
		if(x == 0){
			break;
		}
		}
		} java.util.Scanner scan = new java.util.Scanner(System.in); scan new java.util.Scanner(System.in) int x; x int i = 0; i 0 while(true){
		x = scan.nextInt();
		i+= 1;
			if(1<=x && x<= 10000){
			System.out.println("Case "+i+": "+x);
			
			}
		if(x == 0){
			break;
		}
		} true {
		x = scan.nextInt();
		i+= 1;
			if(1<=x && x<= 10000){
			System.out.println("Case "+i+": "+x);
			
			}
		if(x == 0){
			break;
		}
		} x = scan.nextInt() x scan.nextInt() scan.nextInt scan i+= 1 i 1 if(1<=x && x<= 10000){
			System.out.println("Case "+i+": "+x);
			
			} 1<=x && x<= 10000 1<=x 1 x x<= 10000 x 10000 {
			System.out.println("Case "+i+": "+x);
			
			} System.out.println("Case "+i+": "+x) System.out.println System.out System System.out "Case "+i+": "+x ": " "Case "+i+": "+x "Case " i ": " x if(x == 0){
			break;
		} x == 0 x 0 {
			break;
		} break; String[] args args public class Main {
			
				
		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int x;
		int i = 0;
		while(true){
		x = scan.nextInt();
		i+= 1;
			if(1<=x && x<= 10000){
			System.out.println("Case "+i+": "+x);
			
			}
		if(x == 0){
			break;
		}
		}
		}
					
					
					
		} public class Main {
			
				
		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int x;
		int i = 0;
		while(true){
		x = scan.nextInt();
		i+= 1;
			if(1<=x && x<= 10000){
			System.out.println("Case "+i+": "+x);
			
			}
		if(x == 0){
			break;
		}
		}
		}
					
					
					
		} Main
public class Main {
			
				
		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int x;
		int i = 0;
		while(true){
		x = scan.nextInt();
		i+= 1;
			if(1<=x && x<= 10000){
			System.out.println("Case "+i+": "+x);
			
			}
		if(x == 0){
			break;
		}
		}
		}
					
					
					
		}