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

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int counter = 1;
        while (scan.hasNext()) {
            int num = scan.nextInt();
            if (num == 0) {
                break;
            }
            out.printf("Case %d: %d%n", counter, num);
            counter += 1;
        }
    }                                                                  
} import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int counter = 1;
        while (scan.hasNext()) {
            int num = scan.nextInt();
            if (num == 0) {
                break;
            }
            out.printf("Case %d: %d%n", counter, num);
            counter += 1;
        }
    }                                                                  
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int counter = 1;
        while (scan.hasNext()) {
            int num = scan.nextInt();
            if (num == 0) {
                break;
            }
            out.printf("Case %d: %d%n", counter, num);
            counter += 1;
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int counter = 1;
        while (scan.hasNext()) {
            int num = scan.nextInt();
            if (num == 0) {
                break;
            }
            out.printf("Case %d: %d%n", counter, num);
            counter += 1;
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int counter = 1; counter 1 while (scan.hasNext()) {
            int num = scan.nextInt();
            if (num == 0) {
                break;
            }
            out.printf("Case %d: %d%n", counter, num);
            counter += 1;
        } scan.hasNext() scan.hasNext scan {
            int num = scan.nextInt();
            if (num == 0) {
                break;
            }
            out.printf("Case %d: %d%n", counter, num);
            counter += 1;
        } int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan if (num == 0) {
                break;
            } num == 0 num 0 {
                break;
            } break; out.printf("Case %d: %d%n", counter, num) out.printf out "Case %d: %d%n" counter num counter += 1 counter 1 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int counter = 1;
        while (scan.hasNext()) {
            int num = scan.nextInt();
            if (num == 0) {
                break;
            }
            out.printf("Case %d: %d%n", counter, num);
            counter += 1;
        }
    }                                                                  
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int counter = 1;
        while (scan.hasNext()) {
            int num = scan.nextInt();
            if (num == 0) {
                break;
            }
            out.printf("Case %d: %d%n", counter, num);
            counter += 1;
        }
    }                                                                  
} Main
import static java.lang.System.out;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int counter = 1;
        while (scan.hasNext()) {
            int num = scan.nextInt();
            if (num == 0) {
                break;
            }
            out.printf("Case %d: %d%n", counter, num);
            counter += 1;
        }
    }                                                                  
}