import java.util.Scanner;

public class Main {

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

        int inputInt;
        int i = 1;
        for (;;) {
            inputInt = Integer.parseInt(sc.nextLine());
            if (inputInt == 0) {
                break;
            }
            sb.append("Case " + i + ": " + inputInt + "\n");
            i++;
        }

        System.out.print(sb);
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

        int inputInt;
        int i = 1;
        for (;;) {
            inputInt = Integer.parseInt(sc.nextLine());
            if (inputInt == 0) {
                break;
            }
            sb.append("Case " + i + ": " + inputInt + "\n");
            i++;
        }

        System.out.print(sb);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        StringBuilder sb = new StringBuilder();

        int inputInt;
        int i = 1;
        for (;;) {
            inputInt = Integer.parseInt(sc.nextLine());
            if (inputInt == 0) {
                break;
            }
            sb.append("Case " + i + ": " + inputInt + "\n");
            i++;
        }

        System.out.print(sb);
    } main {
        Scanner sc = new Scanner(System.in);
        StringBuilder sb = new StringBuilder();

        int inputInt;
        int i = 1;
        for (;;) {
            inputInt = Integer.parseInt(sc.nextLine());
            if (inputInt == 0) {
                break;
            }
            sb.append("Case " + i + ": " + inputInt + "\n");
            i++;
        }

        System.out.print(sb);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int inputInt; inputInt int i = 1; i 1 for (;;) {
            inputInt = Integer.parseInt(sc.nextLine());
            if (inputInt == 0) {
                break;
            }
            sb.append("Case " + i + ": " + inputInt + "\n");
            i++;
        } ; {
            inputInt = Integer.parseInt(sc.nextLine());
            if (inputInt == 0) {
                break;
            }
            sb.append("Case " + i + ": " + inputInt + "\n");
            i++;
        } {
            inputInt = Integer.parseInt(sc.nextLine());
            if (inputInt == 0) {
                break;
            }
            sb.append("Case " + i + ": " + inputInt + "\n");
            i++;
        } inputInt = Integer.parseInt(sc.nextLine()) inputInt Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc if (inputInt == 0) {
                break;
            } inputInt == 0 inputInt 0 {
                break;
            } break; sb.append("Case " + i + ": " + inputInt + "\n") sb.append sb "Case " + i + ": " + inputInt + "\n" inputInt ": " "Case " + i + ": " + inputInt + "\n" "Case " i ": " inputInt "\n" i++ i System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main {

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

        int inputInt;
        int i = 1;
        for (;;) {
            inputInt = Integer.parseInt(sc.nextLine());
            if (inputInt == 0) {
                break;
            }
            sb.append("Case " + i + ": " + inputInt + "\n");
            i++;
        }

        System.out.print(sb);
    }
} public class Main {

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

        int inputInt;
        int i = 1;
        for (;;) {
            inputInt = Integer.parseInt(sc.nextLine());
            if (inputInt == 0) {
                break;
            }
            sb.append("Case " + i + ": " + inputInt + "\n");
            i++;
        }

        System.out.print(sb);
    }
} Main
import java.util.Scanner;

public class Main {

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

        int inputInt;
        int i = 1;
        for (;;) {
            inputInt = Integer.parseInt(sc.nextLine());
            if (inputInt == 0) {
                break;
            }
            sb.append("Case " + i + ": " + inputInt + "\n");
            i++;
        }

        System.out.print(sb);
    }
}