import java.util.*;
import java.util.Scanner;

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


    }
} import java.util.*; util.* java import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        for(int i=1;true;i++){
            int x = sc.nextInt();
            if(x!=0){    
                System.out.println("Case "+i+": "+x);
            }else{
               break;
            }
                
        }


    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        for(int i=1;true;i++){
            int x = sc.nextInt();
            if(x!=0){    
                System.out.println("Case "+i+": "+x);
            }else{
               break;
            }
                
        }


    } main {
        Scanner sc = new Scanner(System.in);
        
        for(int i=1;true;i++){
            int x = sc.nextInt();
            if(x!=0){    
                System.out.println("Case "+i+": "+x);
            }else{
               break;
            }
                
        }


    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(int i=1;true;i++){
            int x = sc.nextInt();
            if(x!=0){    
                System.out.println("Case "+i+": "+x);
            }else{
               break;
            }
                
        } int i=1; int i=1; i 1 true i++ i++ i {
            int x = sc.nextInt();
            if(x!=0){    
                System.out.println("Case "+i+": "+x);
            }else{
               break;
            }
                
        } {
            int x = sc.nextInt();
            if(x!=0){    
                System.out.println("Case "+i+": "+x);
            }else{
               break;
            }
                
        } int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc if(x!=0){    
                System.out.println("Case "+i+": "+x);
            }else{
               break;
            } x!=0 x 0 {    
                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 {
               break;
            } break; String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        for(int i=1;true;i++){
            int x = sc.nextInt();
            if(x!=0){    
                System.out.println("Case "+i+": "+x);
            }else{
               break;
            }
                
        }


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


    }
} Main
import java.util.*;
import java.util.Scanner;

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


    }
}
