import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int x = scan.nextInt();
        int i = 1;
        while (x != 0) {

            System.out.println("Case " + i + ": " + x);
            x = scan.nextInt();
            i++;
        }
    }

} import java.util.Scanner; Scanner java.util class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int x = scan.nextInt();
        int i = 1;
        while (x != 0) {

            System.out.println("Case " + i + ": " + x);
            x = scan.nextInt();
            i++;
        }
    }

} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int x = scan.nextInt();
        int i = 1;
        while (x != 0) {

            System.out.println("Case " + i + ": " + x);
            x = scan.nextInt();
            i++;
        }
    } main {
        Scanner scan = new Scanner(System.in);

        int x = scan.nextInt();
        int i = 1;
        while (x != 0) {

            System.out.println("Case " + i + ": " + x);
            x = scan.nextInt();
            i++;
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan int i = 1; i 1 while (x != 0) {

            System.out.println("Case " + i + ": " + x);
            x = scan.nextInt();
            i++;
        } x != 0 x 0 {

            System.out.println("Case " + i + ": " + x);
            x = scan.nextInt();
            i++;
        } System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x x = scan.nextInt() x scan.nextInt() scan.nextInt scan i++ i String[] args args
import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int x = scan.nextInt();
        int i = 1;
        while (x != 0) {

            System.out.println("Case " + i + ": " + x);
            x = scan.nextInt();
            i++;
        }
    }

}
