import java.util.Scanner;

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

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