import java.util.Scanner;

public class Main {

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

    private static void solve(Scanner in) {
        for (int i = 1, x = in.nextInt(); 
                x != 0; 
                i++, x = in.nextInt()) {
            System.out.printf("Case %d: %d\n", i, x);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

    private static void solve(Scanner in) {
        for (int i = 1, x = in.nextInt(); 
                x != 0; 
                i++, x = in.nextInt()) {
            System.out.printf("Case %d: %d\n", i, x);
        }
    }
} Main public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    } main {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    } try (Scanner in = new Scanner(System.in)) {
            solve(in);
        } {
            solve(in);
        } Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) solve(in) solve in String[] args args private static void solve(Scanner in) {
        for (int i = 1, x = in.nextInt(); 
                x != 0; 
                i++, x = in.nextInt()) {
            System.out.printf("Case %d: %d\n", i, x);
        }
    } solve {
        for (int i = 1, x = in.nextInt(); 
                x != 0; 
                i++, x = in.nextInt()) {
            System.out.printf("Case %d: %d\n", i, x);
        }
    } for (int i = 1, x = in.nextInt(); 
                x != 0; 
                i++, x = in.nextInt()) {
            System.out.printf("Case %d: %d\n", i, x);
        } int i = 1, x = in.nextInt(); int i = 1 i 1 x = in.nextInt(); x in.nextInt() in.nextInt in x != 0 x 0 i++, x = in.nextInt() i++ i x = in.nextInt() x in.nextInt() in.nextInt in {
            System.out.printf("Case %d: %d\n", i, x);
        } {
            System.out.printf("Case %d: %d\n", i, x);
        } System.out.printf("Case %d: %d\n", i, x) System.out.printf System.out System System.out "Case %d: %d\n" i x Scanner in in public class Main {

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

    private static void solve(Scanner in) {
        for (int i = 1, x = in.nextInt(); 
                x != 0; 
                i++, x = in.nextInt()) {
            System.out.printf("Case %d: %d\n", i, x);
        }
    }
} public class Main {

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

    private static void solve(Scanner in) {
        for (int i = 1, x = in.nextInt(); 
                x != 0; 
                i++, x = in.nextInt()) {
            System.out.printf("Case %d: %d\n", i, x);
        }
    }
} Main
import java.util.Scanner;

public class Main {

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

    private static void solve(Scanner in) {
        for (int i = 1, x = in.nextInt(); 
                x != 0; 
                i++, x = in.nextInt()) {
            System.out.printf("Case %d: %d\n", i, x);
        }
    }
}