	import java.util.Scanner;

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

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