import java.util.Scanner;

public class Main {

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

        Scanner stdId = new Scanner(System.in);
        int a;
        int cnt = 0;

        while (true) {
            a = stdId.nextInt();
            if (a == 0) {
                break;
            } else {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

        Scanner stdId = new Scanner(System.in);
        int a;
        int cnt = 0;

        while (true) {
            a = stdId.nextInt();
            if (a == 0) {
                break;
            } else {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            }
        }
    }
} Main public static void main(String[] args) throws Exception {

        Scanner stdId = new Scanner(System.in);
        int a;
        int cnt = 0;

        while (true) {
            a = stdId.nextInt();
            if (a == 0) {
                break;
            } else {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            }
        }
    } main {

        Scanner stdId = new Scanner(System.in);
        int a;
        int cnt = 0;

        while (true) {
            a = stdId.nextInt();
            if (a == 0) {
                break;
            } else {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            }
        }
    } Scanner stdId = new Scanner(System.in); stdId new Scanner(System.in) int a; a int cnt = 0; cnt 0 while (true) {
            a = stdId.nextInt();
            if (a == 0) {
                break;
            } else {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            }
        } true {
            a = stdId.nextInt();
            if (a == 0) {
                break;
            } else {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            }
        } a = stdId.nextInt() a stdId.nextInt() stdId.nextInt stdId if (a == 0) {
                break;
            } else {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            } a == 0 a 0 {
                break;
            } break; {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            } cnt++ cnt System.out.println("Case " + cnt + ": " + a) System.out.println System.out System System.out "Case " + cnt + ": " + a ": " "Case " + cnt + ": " + a "Case " cnt ": " a String[] args args public class Main {

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

        Scanner stdId = new Scanner(System.in);
        int a;
        int cnt = 0;

        while (true) {
            a = stdId.nextInt();
            if (a == 0) {
                break;
            } else {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            }
        }
    }
} public class Main {

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

        Scanner stdId = new Scanner(System.in);
        int a;
        int cnt = 0;

        while (true) {
            a = stdId.nextInt();
            if (a == 0) {
                break;
            } else {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {

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

        Scanner stdId = new Scanner(System.in);
        int a;
        int cnt = 0;

        while (true) {
            a = stdId.nextInt();
            if (a == 0) {
                break;
            } else {
                cnt++;
                System.out.println("Case " + cnt + ": " + a);
                //Case 1: 3
            }
        }
    }
}