/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author otsuhata
 */
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        
        int count = 0;
        int x = 1;
        
        Scanner sc = new Scanner(System.in);            
        
        for(int i = 0; i < 10000; i ++) {
            x = sc.nextInt();
            
            if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            }
        }
        
//        while(x != 0) {
//            x = sc.nextInt();
//            count ++;
//            System.out.println("Case " + count + ": " + x);
//        }
    }
    
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        
        int count = 0;
        int x = 1;
        
        Scanner sc = new Scanner(System.in);            
        
        for(int i = 0; i < 10000; i ++) {
            x = sc.nextInt();
            
            if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            }
        }
        
//        while(x != 0) {
//            x = sc.nextInt();
//            count ++;
//            System.out.println("Case " + count + ": " + x);
//        }
    }
    
} Main public static void main(String[] args) {
        
        int count = 0;
        int x = 1;
        
        Scanner sc = new Scanner(System.in);            
        
        for(int i = 0; i < 10000; i ++) {
            x = sc.nextInt();
            
            if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            }
        }
        
//        while(x != 0) {
//            x = sc.nextInt();
//            count ++;
//            System.out.println("Case " + count + ": " + x);
//        }
    } main {
        
        int count = 0;
        int x = 1;
        
        Scanner sc = new Scanner(System.in);            
        
        for(int i = 0; i < 10000; i ++) {
            x = sc.nextInt();
            
            if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            }
        }
        
//        while(x != 0) {
//            x = sc.nextInt();
//            count ++;
//            System.out.println("Case " + count + ": " + x);
//        }
    } int count = 0; count 0 int x = 1; x 1 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(int i = 0; i < 10000; i ++) {
            x = sc.nextInt();
            
            if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            }
        } int i = 0; int i = 0; i 0 i < 10000 i 10000 i ++ i ++ i {
            x = sc.nextInt();
            
            if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            }
        } {
            x = sc.nextInt();
            
            if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            }
        } x = sc.nextInt() x sc.nextInt() sc.nextInt sc if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            } x == 0 || x < 1 || x > 10000 x == 0 || x < 1 || x > 10000 x == 0 x 0 x < 1 x 1 x > 10000 x 10000 {
                break;
            } break; {
                System.out.println("Case " + (i + 1) + ": " + x);
            } System.out.println("Case " + (i + 1) + ": " + x) System.out.println System.out System System.out "Case " + (i + 1) + ": " + x ": " "Case " + (i + 1) + ": " + x "Case " (i + 1) i 1 ": " x String[] args args public class Main {
    public static void main(String[] args) {
        
        int count = 0;
        int x = 1;
        
        Scanner sc = new Scanner(System.in);            
        
        for(int i = 0; i < 10000; i ++) {
            x = sc.nextInt();
            
            if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            }
        }
        
//        while(x != 0) {
//            x = sc.nextInt();
//            count ++;
//            System.out.println("Case " + count + ": " + x);
//        }
    }
    
} public class Main {
    public static void main(String[] args) {
        
        int count = 0;
        int x = 1;
        
        Scanner sc = new Scanner(System.in);            
        
        for(int i = 0; i < 10000; i ++) {
            x = sc.nextInt();
            
            if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            }
        }
        
//        while(x != 0) {
//            x = sc.nextInt();
//            count ++;
//            System.out.println("Case " + count + ": " + x);
//        }
    }
    
} Main
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author otsuhata
 */
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        
        int count = 0;
        int x = 1;
        
        Scanner sc = new Scanner(System.in);            
        
        for(int i = 0; i < 10000; i ++) {
            x = sc.nextInt();
            
            if(x == 0 || x < 1 || x > 10000) {
                break;
            }else {
                System.out.println("Case " + (i + 1) + ": " + x);
            }
        }
        
//        while(x != 0) {
//            x = sc.nextInt();
//            count ++;
//            System.out.println("Case " + count + ": " + x);
//        }
    }
    
}