import java.util.*;

class PrintTestCases {
    public static void main(String...args) {
        final Scanner sc = new Scanner(System.in);
        for (int t = 1; ; t++) {
            final int x = sc.nextInt();
            if(x == 0)
                break;
            System.out.printf("Case %d: %d\n", t, x);
        }
    }
}
public class Main {
    public static void main(String... args) {
        PrintTestCases.main();
    }
} import java.util.*; util.* java class PrintTestCases {
    public static void main(String...args) {
        final Scanner sc = new Scanner(System.in);
        for (int t = 1; ; t++) {
            final int x = sc.nextInt();
            if(x == 0)
                break;
            System.out.printf("Case %d: %d\n", t, x);
        }
    }
} PrintTestCases public static void main(String...args) {
        final Scanner sc = new Scanner(System.in);
        for (int t = 1; ; t++) {
            final int x = sc.nextInt();
            if(x == 0)
                break;
            System.out.printf("Case %d: %d\n", t, x);
        }
    } main {
        final Scanner sc = new Scanner(System.in);
        for (int t = 1; ; t++) {
            final int x = sc.nextInt();
            if(x == 0)
                break;
            System.out.printf("Case %d: %d\n", t, x);
        }
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for (int t = 1; ; t++) {
            final int x = sc.nextInt();
            if(x == 0)
                break;
            System.out.printf("Case %d: %d\n", t, x);
        } int t = 1; int t = 1; t 1 t++ t++ t {
            final int x = sc.nextInt();
            if(x == 0)
                break;
            System.out.printf("Case %d: %d\n", t, x);
        } {
            final int x = sc.nextInt();
            if(x == 0)
                break;
            System.out.printf("Case %d: %d\n", t, x);
        } final int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc if(x == 0)
                break; x == 0 x 0 break; System.out.printf("Case %d: %d\n", t, x) System.out.printf System.out System System.out "Case %d: %d\n" t x String...args args public class Main {
    public static void main(String... args) {
        PrintTestCases.main();
    }
} Main public static void main(String... args) {
        PrintTestCases.main();
    } main {
        PrintTestCases.main();
    } PrintTestCases.main() PrintTestCases.main PrintTestCases String... args args public class Main {
    public static void main(String... args) {
        PrintTestCases.main();
    }
} public class Main {
    public static void main(String... args) {
        PrintTestCases.main();
    }
} Main
import java.util.*;

class PrintTestCases {
    public static void main(String...args) {
        final Scanner sc = new Scanner(System.in);
        for (int t = 1; ; t++) {
            final int x = sc.nextInt();
            if(x == 0)
                break;
            System.out.printf("Case %d: %d\n", t, x);
        }
    }
}
public class Main {
    public static void main(String... args) {
        PrintTestCases.main();
    }
}