import java.util.ArrayList;
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> x = new ArrayList<Integer>();
        //int x[] = new int[100];
        int count = 0;
        while(true){
            x.add(count,sc.nextInt());
            if(x.get(count)==0)
                break;
            count += 1;
        }
        for(int i = 0; i < count; i++){
            if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i));
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> x = new ArrayList<Integer>();
        //int x[] = new int[100];
        int count = 0;
        while(true){
            x.add(count,sc.nextInt());
            if(x.get(count)==0)
                break;
            count += 1;
        }
        for(int i = 0; i < count; i++){
            if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i));
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> x = new ArrayList<Integer>();
        //int x[] = new int[100];
        int count = 0;
        while(true){
            x.add(count,sc.nextInt());
            if(x.get(count)==0)
                break;
            count += 1;
        }
        for(int i = 0; i < count; i++){
            if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i));
        }
    } main {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> x = new ArrayList<Integer>();
        //int x[] = new int[100];
        int count = 0;
        while(true){
            x.add(count,sc.nextInt());
            if(x.get(count)==0)
                break;
            count += 1;
        }
        for(int i = 0; i < count; i++){
            if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i));
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> x = new ArrayList<Integer>(); x new ArrayList<Integer>() int count = 0; count 0 while(true){
            x.add(count,sc.nextInt());
            if(x.get(count)==0)
                break;
            count += 1;
        } true {
            x.add(count,sc.nextInt());
            if(x.get(count)==0)
                break;
            count += 1;
        } x.add(count,sc.nextInt()) x.add x count sc.nextInt() sc.nextInt sc if(x.get(count)==0)
                break; x.get(count)==0 x.get(count) x.get x count 0 break; count += 1 count 1 for(int i = 0; i < count; i++){
            if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i));
        } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
            if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i));
        } {
            if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i));
        } if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i)); !(i==count) (i==count) i count System.out.println("Case "+(i+1)+": "+x.get(i)) System.out.println System.out System System.out "Case "+(i+1)+": "+x.get(i) ": " "Case "+(i+1)+": "+x.get(i) "Case " (i+1) i 1 ": " x.get(i) x.get x i String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> x = new ArrayList<Integer>();
        //int x[] = new int[100];
        int count = 0;
        while(true){
            x.add(count,sc.nextInt());
            if(x.get(count)==0)
                break;
            count += 1;
        }
        for(int i = 0; i < count; i++){
            if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i));
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> x = new ArrayList<Integer>();
        //int x[] = new int[100];
        int count = 0;
        while(true){
            x.add(count,sc.nextInt());
            if(x.get(count)==0)
                break;
            count += 1;
        }
        for(int i = 0; i < count; i++){
            if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i));
        }
    }
} Main
import java.util.ArrayList;
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> x = new ArrayList<Integer>();
        //int x[] = new int[100];
        int count = 0;
        while(true){
            x.add(count,sc.nextInt());
            if(x.get(count)==0)
                break;
            count += 1;
        }
        for(int i = 0; i < count; i++){
            if(!(i==count))
            System.out.println("Case "+(i+1)+": "+x.get(i));
        }
    }
}