import java.util.Scanner;

public class Main {

    static final String ZERO = "0";

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

        String str;
        for (int i = 1; sc.hasNext(); i++) {
            str = sc.nextLine();
            if (ZERO.equals(str)) {
                break;
            }
            sb.append("Case " + i + ": " + str + "\n");
        }

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

    static final String ZERO = "0";

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

        String str;
        for (int i = 1; sc.hasNext(); i++) {
            str = sc.nextLine();
            if (ZERO.equals(str)) {
                break;
            }
            sb.append("Case " + i + ": " + str + "\n");
        }

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

        String str;
        for (int i = 1; sc.hasNext(); i++) {
            str = sc.nextLine();
            if (ZERO.equals(str)) {
                break;
            }
            sb.append("Case " + i + ": " + str + "\n");
        }

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

        String str;
        for (int i = 1; sc.hasNext(); i++) {
            str = sc.nextLine();
            if (ZERO.equals(str)) {
                break;
            }
            sb.append("Case " + i + ": " + str + "\n");
        }

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

    static final String ZERO = "0";

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

        String str;
        for (int i = 1; sc.hasNext(); i++) {
            str = sc.nextLine();
            if (ZERO.equals(str)) {
                break;
            }
            sb.append("Case " + i + ": " + str + "\n");
        }

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

    static final String ZERO = "0";

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

        String str;
        for (int i = 1; sc.hasNext(); i++) {
            str = sc.nextLine();
            if (ZERO.equals(str)) {
                break;
            }
            sb.append("Case " + i + ": " + str + "\n");
        }

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

public class Main {

    static final String ZERO = "0";

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

        String str;
        for (int i = 1; sc.hasNext(); i++) {
            str = sc.nextLine();
            if (ZERO.equals(str)) {
                break;
            }
            sb.append("Case " + i + ": " + str + "\n");
        }

        System.out.print(sb);
    }
}