import java.util.Scanner;

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

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