import java.util.Scanner;

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

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