import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        list.add(sc.nextInt());
        for(int i = 1;i < 10001;i++){
            if(list.get(i-1) == 0){
                break;   
            }
            System.out.println("Case " + i + ": " + list.get(i-1));
            list.add(sc.nextInt());
        }
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        list.add(sc.nextInt());
        for(int i = 1;i < 10001;i++){
            if(list.get(i-1) == 0){
                break;   
            }
            System.out.println("Case " + i + ": " + list.get(i-1));
            list.add(sc.nextInt());
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        list.add(sc.nextInt());
        for(int i = 1;i < 10001;i++){
            if(list.get(i-1) == 0){
                break;   
            }
            System.out.println("Case " + i + ": " + list.get(i-1));
            list.add(sc.nextInt());
        }
    } main {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        list.add(sc.nextInt());
        for(int i = 1;i < 10001;i++){
            if(list.get(i-1) == 0){
                break;   
            }
            System.out.println("Case " + i + ": " + list.get(i-1));
            list.add(sc.nextInt());
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc for(int i = 1;i < 10001;i++){
            if(list.get(i-1) == 0){
                break;   
            }
            System.out.println("Case " + i + ": " + list.get(i-1));
            list.add(sc.nextInt());
        } int i = 1; int i = 1; i 1 i < 10001 i 10001 i++ i++ i {
            if(list.get(i-1) == 0){
                break;   
            }
            System.out.println("Case " + i + ": " + list.get(i-1));
            list.add(sc.nextInt());
        } {
            if(list.get(i-1) == 0){
                break;   
            }
            System.out.println("Case " + i + ": " + list.get(i-1));
            list.add(sc.nextInt());
        } if(list.get(i-1) == 0){
                break;   
            } list.get(i-1) == 0 list.get(i-1) list.get list i-1 i 1 0 {
                break;   
            } break; System.out.println("Case " + i + ": " + list.get(i-1)) System.out.println System.out System System.out "Case " + i + ": " + list.get(i-1) ": " "Case " + i + ": " + list.get(i-1) "Case " i ": " list.get(i-1) list.get list i-1 i 1 list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
        list.add(sc.nextInt());
        for(int i = 1;i < 10001;i++){
            if(list.get(i-1) == 0){
                break;   
            }
            System.out.println("Case " + i + ": " + list.get(i-1));
            list.add(sc.nextInt());
        }
    }
}
