import java.io.*;

public class Main {
    /**
     *
     */

    private static final int _100000 = 100000;

    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int[]  x;
        int i;
        x = new int[100000];
        int count = 0;
        try {
            for(i=1;i<100000;i++) {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            }

            for(i=1;i<=count;i++){
                System.out.println("Case " + i + ": " + x[i]);
            }

        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e){
            System.out.println("falese");
        }
    }
} import java.io.*; io.* java public class Main {
    /**
     *
     */

    private static final int _100000 = 100000;

    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int[]  x;
        int i;
        x = new int[100000];
        int count = 0;
        try {
            for(i=1;i<100000;i++) {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            }

            for(i=1;i<=count;i++){
                System.out.println("Case " + i + ": " + x[i]);
            }

        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e){
            System.out.println("falese");
        }
    }
} Main /**
     *
     */

    private static final int _100000 = 100000; _100000 100000 public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int[]  x;
        int i;
        x = new int[100000];
        int count = 0;
        try {
            for(i=1;i<100000;i++) {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            }

            for(i=1;i<=count;i++){
                System.out.println("Case " + i + ": " + x[i]);
            }

        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e){
            System.out.println("falese");
        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int[]  x;
        int i;
        x = new int[100000];
        int count = 0;
        try {
            for(i=1;i<100000;i++) {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            }

            for(i=1;i<=count;i++){
                System.out.println("Case " + i + ": " + x[i]);
            }

        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e){
            System.out.println("falese");
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int[]  x; x int i; i x = new int[100000] x new int[100000] 100000 int count = 0; count 0 try {
            for(i=1;i<100000;i++) {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            }

            for(i=1;i<=count;i++){
                System.out.println("Case " + i + ": " + x[i]);
            }

        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e){
            System.out.println("falese");
        } catch (IOException e) {
            System.out.println(e);
        } IOException e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e catch (NumberFormatException e){
            System.out.println("falese");
        } NumberFormatException e {
            System.out.println("falese");
        } System.out.println("falese") System.out.println System.out System System.out "falese" {
            for(i=1;i<100000;i++) {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            }

            for(i=1;i<=count;i++){
                System.out.println("Case " + i + ": " + x[i]);
            }

        } for(i=1;i<100000;i++) {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            } i=1; i=1 i 1 i<100000 i 100000 i++ i++ i {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            } {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            } String line = reader.readLine(); line reader.readLine() reader.readLine reader x[i] = Integer.parseInt(line) x[i] x i Integer.parseInt(line) Integer.parseInt Integer line if (x[i] == 0) break; x[i] == 0 x[i] x i 0 break; count++ count for(i=1;i<=count;i++){
                System.out.println("Case " + i + ": " + x[i]);
            } i=1; i=1 i 1 i<=count i count i++ i++ i {
                System.out.println("Case " + i + ": " + x[i]);
            } {
                System.out.println("Case " + i + ": " + x[i]);
            } System.out.println("Case " + i + ": " + x[i]) System.out.println System.out System System.out "Case " + i + ": " + x[i] ": " "Case " + i + ": " + x[i] "Case " i ": " x[i] x i String[] args args public class Main {
    /**
     *
     */

    private static final int _100000 = 100000;

    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int[]  x;
        int i;
        x = new int[100000];
        int count = 0;
        try {
            for(i=1;i<100000;i++) {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            }

            for(i=1;i<=count;i++){
                System.out.println("Case " + i + ": " + x[i]);
            }

        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e){
            System.out.println("falese");
        }
    }
} public class Main {
    /**
     *
     */

    private static final int _100000 = 100000;

    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int[]  x;
        int i;
        x = new int[100000];
        int count = 0;
        try {
            for(i=1;i<100000;i++) {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            }

            for(i=1;i<=count;i++){
                System.out.println("Case " + i + ": " + x[i]);
            }

        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e){
            System.out.println("falese");
        }
    }
} Main
import java.io.*;

public class Main {
    /**
     *
     */

    private static final int _100000 = 100000;

    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int[]  x;
        int i;
        x = new int[100000];
        int count = 0;
        try {
            for(i=1;i<100000;i++) {
            String line = reader.readLine();
            x[i] = Integer.parseInt(line);
            if (x[i] == 0) break;
            count++;
            }

            for(i=1;i<=count;i++){
                System.out.println("Case " + i + ": " + x[i]);
            }

        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e){
            System.out.println("falese");
        }
    }
}
