import static java.lang.System.out;
import java.util.ArrayList;
import java.util.Scanner;

class PrintTestCases {
}

public class Main {
    public static void main(String... args) {
        ArrayList<Integer> data = new ArrayList<Integer>();

        // scan
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {
            data.add(scan.nextInt());
        }

        // print
        for (int i = 0; i < data.size(); i++) {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        }
    }
} import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util class PrintTestCases {
} PrintTestCases public class Main {
    public static void main(String... args) {
        ArrayList<Integer> data = new ArrayList<Integer>();

        // scan
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {
            data.add(scan.nextInt());
        }

        // print
        for (int i = 0; i < data.size(); i++) {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        }
    }
} Main public static void main(String... args) {
        ArrayList<Integer> data = new ArrayList<Integer>();

        // scan
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {
            data.add(scan.nextInt());
        }

        // print
        for (int i = 0; i < data.size(); i++) {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        }
    } main {
        ArrayList<Integer> data = new ArrayList<Integer>();

        // scan
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {
            data.add(scan.nextInt());
        }

        // print
        for (int i = 0; i < data.size(); i++) {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        }
    } ArrayList<Integer> data = new ArrayList<Integer>(); data new ArrayList<Integer>() Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while (scan.hasNext()) {
            data.add(scan.nextInt());
        } scan.hasNext() scan.hasNext scan {
            data.add(scan.nextInt());
        } data.add(scan.nextInt()) data.add data scan.nextInt() scan.nextInt scan for (int i = 0; i < data.size(); i++) {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        } int i = 0; int i = 0; i 0 i < data.size() i data.size() data.size data i++ i++ i {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        } {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        } if (data.get(i) == 0) break; // 0??????????????? data.get(i) == 0 data.get(i) data.get data i 0 break; // 0??????????????? out.printf("Case %d: %d\n", i+1, data.get(i) ) out.printf out "Case %d: %d\n" i+1 i 1 data.get(i) data.get data i String... args args public class Main {
    public static void main(String... args) {
        ArrayList<Integer> data = new ArrayList<Integer>();

        // scan
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {
            data.add(scan.nextInt());
        }

        // print
        for (int i = 0; i < data.size(); i++) {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        }
    }
} public class Main {
    public static void main(String... args) {
        ArrayList<Integer> data = new ArrayList<Integer>();

        // scan
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {
            data.add(scan.nextInt());
        }

        // print
        for (int i = 0; i < data.size(); i++) {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        }
    }
} Main
import static java.lang.System.out;
import java.util.ArrayList;
import java.util.Scanner;

class PrintTestCases {
}

public class Main {
    public static void main(String... args) {
        ArrayList<Integer> data = new ArrayList<Integer>();

        // scan
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {
            data.add(scan.nextInt());
        }

        // print
        for (int i = 0; i < data.size(); i++) {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        }
    }
}