import java.util.Scanner;

public class Main{ 
        public static void main(String[] args){
            int a[];
            int i=0,count=1;
            a = new int[100000];
            a[0]=1;
                Scanner n = new Scanner(System.in);
                while(a[i] != 0){
                    i++;
                     a[i] = n.nextInt();
                     if(a[i]!=0){
                         count+=1;
                    }
                }
                i=1;
                while(count>i){
                    System.out.println("Case " + i + ": " + a[i]);
                    i++;
                }
        }
    } import java.util.Scanner; Scanner java.util public class Main{ 
        public static void main(String[] args){
            int a[];
            int i=0,count=1;
            a = new int[100000];
            a[0]=1;
                Scanner n = new Scanner(System.in);
                while(a[i] != 0){
                    i++;
                     a[i] = n.nextInt();
                     if(a[i]!=0){
                         count+=1;
                    }
                }
                i=1;
                while(count>i){
                    System.out.println("Case " + i + ": " + a[i]);
                    i++;
                }
        }
    } Main public static void main(String[] args){
            int a[];
            int i=0,count=1;
            a = new int[100000];
            a[0]=1;
                Scanner n = new Scanner(System.in);
                while(a[i] != 0){
                    i++;
                     a[i] = n.nextInt();
                     if(a[i]!=0){
                         count+=1;
                    }
                }
                i=1;
                while(count>i){
                    System.out.println("Case " + i + ": " + a[i]);
                    i++;
                }
        } main {
            int a[];
            int i=0,count=1;
            a = new int[100000];
            a[0]=1;
                Scanner n = new Scanner(System.in);
                while(a[i] != 0){
                    i++;
                     a[i] = n.nextInt();
                     if(a[i]!=0){
                         count+=1;
                    }
                }
                i=1;
                while(count>i){
                    System.out.println("Case " + i + ": " + a[i]);
                    i++;
                }
        } int a[]; a int i=0 i 0 count=1; count 1 a = new int[100000] a new int[100000] 100000 a[0]=1 a[0] a 0 1 Scanner n = new Scanner(System.in); n new Scanner(System.in) while(a[i] != 0){
                    i++;
                     a[i] = n.nextInt();
                     if(a[i]!=0){
                         count+=1;
                    }
                } a[i] != 0 a[i] a i 0 {
                    i++;
                     a[i] = n.nextInt();
                     if(a[i]!=0){
                         count+=1;
                    }
                } i++ i a[i] = n.nextInt() a[i] a i n.nextInt() n.nextInt n if(a[i]!=0){
                         count+=1;
                    } a[i]!=0 a[i] a i 0 {
                         count+=1;
                    } count+=1 count 1 i=1 i 1 while(count>i){
                    System.out.println("Case " + i + ": " + a[i]);
                    i++;
                } count>i count i {
                    System.out.println("Case " + i + ": " + a[i]);
                    i++;
                } System.out.println("Case " + i + ": " + a[i]) System.out.println System.out System System.out "Case " + i + ": " + a[i] ": " "Case " + i + ": " + a[i] "Case " i ": " a[i] a i i++ i String[] args args public class Main{ 
        public static void main(String[] args){
            int a[];
            int i=0,count=1;
            a = new int[100000];
            a[0]=1;
                Scanner n = new Scanner(System.in);
                while(a[i] != 0){
                    i++;
                     a[i] = n.nextInt();
                     if(a[i]!=0){
                         count+=1;
                    }
                }
                i=1;
                while(count>i){
                    System.out.println("Case " + i + ": " + a[i]);
                    i++;
                }
        }
    } public class Main{ 
        public static void main(String[] args){
            int a[];
            int i=0,count=1;
            a = new int[100000];
            a[0]=1;
                Scanner n = new Scanner(System.in);
                while(a[i] != 0){
                    i++;
                     a[i] = n.nextInt();
                     if(a[i]!=0){
                         count+=1;
                    }
                }
                i=1;
                while(count>i){
                    System.out.println("Case " + i + ": " + a[i]);
                    i++;
                }
        }
    } Main
import java.util.Scanner;

public class Main{ 
        public static void main(String[] args){
            int a[];
            int i=0,count=1;
            a = new int[100000];
            a[0]=1;
                Scanner n = new Scanner(System.in);
                while(a[i] != 0){
                    i++;
                     a[i] = n.nextInt();
                     if(a[i]!=0){
                         count+=1;
                    }
                }
                i=1;
                while(count>i){
                    System.out.println("Case " + i + ": " + a[i]);
                    i++;
                }
        }
    }
