import java.io.*;
import java.util.ArrayList;

public class Main {

    public static void main(String[] args) throws IOException {

        ArrayList<Integer> num = new ArrayList<>();
        int x = 0;
        int a = 1;
        int data;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        do {

            data = Integer.parseInt(br.readLine());
            if (data == 0) {
                break;
            }
            num.add(data);

        } while (data != 0);

        
        for (int i = 0; i < num.size(); i++) {
            System.out.println("Case " + a + ": " + num.get(i));
            a++;
        }
    }

} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util public class Main {

    public static void main(String[] args) throws IOException {

        ArrayList<Integer> num = new ArrayList<>();
        int x = 0;
        int a = 1;
        int data;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        do {

            data = Integer.parseInt(br.readLine());
            if (data == 0) {
                break;
            }
            num.add(data);

        } while (data != 0);

        
        for (int i = 0; i < num.size(); i++) {
            System.out.println("Case " + a + ": " + num.get(i));
            a++;
        }
    }

} Main public static void main(String[] args) throws IOException {

        ArrayList<Integer> num = new ArrayList<>();
        int x = 0;
        int a = 1;
        int data;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        do {

            data = Integer.parseInt(br.readLine());
            if (data == 0) {
                break;
            }
            num.add(data);

        } while (data != 0);

        
        for (int i = 0; i < num.size(); i++) {
            System.out.println("Case " + a + ": " + num.get(i));
            a++;
        }
    } main {

        ArrayList<Integer> num = new ArrayList<>();
        int x = 0;
        int a = 1;
        int data;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        do {

            data = Integer.parseInt(br.readLine());
            if (data == 0) {
                break;
            }
            num.add(data);

        } while (data != 0);

        
        for (int i = 0; i < num.size(); i++) {
            System.out.println("Case " + a + ": " + num.get(i));
            a++;
        }
    } ArrayList<Integer> num = new ArrayList<>(); num new ArrayList<>() int x = 0; x 0 int a = 1; a 1 int data; data BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) do {

            data = Integer.parseInt(br.readLine());
            if (data == 0) {
                break;
            }
            num.add(data);

        } while (data != 0); data != 0 data 0 {

            data = Integer.parseInt(br.readLine());
            if (data == 0) {
                break;
            }
            num.add(data);

        } data = Integer.parseInt(br.readLine()) data Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if (data == 0) {
                break;
            } data == 0 data 0 {
                break;
            } break; num.add(data) num.add num data for (int i = 0; i < num.size(); i++) {
            System.out.println("Case " + a + ": " + num.get(i));
            a++;
        } int i = 0; int i = 0; i 0 i < num.size() i num.size() num.size num i++ i++ i {
            System.out.println("Case " + a + ": " + num.get(i));
            a++;
        } {
            System.out.println("Case " + a + ": " + num.get(i));
            a++;
        } System.out.println("Case " + a + ": " + num.get(i)) System.out.println System.out System System.out "Case " + a + ": " + num.get(i) ": " "Case " + a + ": " + num.get(i) "Case " a ": " num.get(i) num.get num i a++ a String[] args args public class Main {

    public static void main(String[] args) throws IOException {

        ArrayList<Integer> num = new ArrayList<>();
        int x = 0;
        int a = 1;
        int data;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        do {

            data = Integer.parseInt(br.readLine());
            if (data == 0) {
                break;
            }
            num.add(data);

        } while (data != 0);

        
        for (int i = 0; i < num.size(); i++) {
            System.out.println("Case " + a + ": " + num.get(i));
            a++;
        }
    }

} public class Main {

    public static void main(String[] args) throws IOException {

        ArrayList<Integer> num = new ArrayList<>();
        int x = 0;
        int a = 1;
        int data;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        do {

            data = Integer.parseInt(br.readLine());
            if (data == 0) {
                break;
            }
            num.add(data);

        } while (data != 0);

        
        for (int i = 0; i < num.size(); i++) {
            System.out.println("Case " + a + ": " + num.get(i));
            a++;
        }
    }

} Main
import java.io.*;
import java.util.ArrayList;

public class Main {

    public static void main(String[] args) throws IOException {

        ArrayList<Integer> num = new ArrayList<>();
        int x = 0;
        int a = 1;
        int data;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        do {

            data = Integer.parseInt(br.readLine());
            if (data == 0) {
                break;
            }
            num.add(data);

        } while (data != 0);

        
        for (int i = 0; i < num.size(); i++) {
            System.out.println("Case " + a + ": " + num.get(i));
            a++;
        }
    }

}