import java.util.Scanner;

class Main{
        public static void main(String args[]){
                Scanner scan = new Scanner(System.in);
                for(int i=1;i<10001;i++){
                        String val=scan.nextLine();
                        if(val.equals("0")){
                                System.exit(0);
                        }
                        System.out.println("Case "+i+": "+val);
                }
        }
} import java.util.Scanner; Scanner java.util class Main{
        public static void main(String args[]){
                Scanner scan = new Scanner(System.in);
                for(int i=1;i<10001;i++){
                        String val=scan.nextLine();
                        if(val.equals("0")){
                                System.exit(0);
                        }
                        System.out.println("Case "+i+": "+val);
                }
        }
} Main public static void main(String args[]){
                Scanner scan = new Scanner(System.in);
                for(int i=1;i<10001;i++){
                        String val=scan.nextLine();
                        if(val.equals("0")){
                                System.exit(0);
                        }
                        System.out.println("Case "+i+": "+val);
                }
        } main {
                Scanner scan = new Scanner(System.in);
                for(int i=1;i<10001;i++){
                        String val=scan.nextLine();
                        if(val.equals("0")){
                                System.exit(0);
                        }
                        System.out.println("Case "+i+": "+val);
                }
        } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) for(int i=1;i<10001;i++){
                        String val=scan.nextLine();
                        if(val.equals("0")){
                                System.exit(0);
                        }
                        System.out.println("Case "+i+": "+val);
                } int i=1; int i=1; i 1 i<10001 i 10001 i++ i++ i {
                        String val=scan.nextLine();
                        if(val.equals("0")){
                                System.exit(0);
                        }
                        System.out.println("Case "+i+": "+val);
                } {
                        String val=scan.nextLine();
                        if(val.equals("0")){
                                System.exit(0);
                        }
                        System.out.println("Case "+i+": "+val);
                } String val=scan.nextLine(); val scan.nextLine() scan.nextLine scan if(val.equals("0")){
                                System.exit(0);
                        } val.equals("0") val.equals val "0" {
                                System.exit(0);
                        } System.exit(0) System.exit System 0 System.out.println("Case "+i+": "+val) System.out.println System.out System System.out "Case "+i+": "+val ": " "Case "+i+": "+val "Case " i ": " val String args[] args
import java.util.Scanner;

class Main{
        public static void main(String args[]){
                Scanner scan = new Scanner(System.in);
                for(int i=1;i<10001;i++){
                        String val=scan.nextLine();
                        if(val.equals("0")){
                                System.exit(0);
                        }
                        System.out.println("Case "+i+": "+val);
                }
        }
}