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

