import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        for (int x = 1; x <= 10000; x++) {
            int i = scanner.nextInt();
            if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        for (int x = 1; x <= 10000; x++) {
            int i = scanner.nextInt();
            if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        for (int x = 1; x <= 10000; x++) {
            int i = scanner.nextInt();
            if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            }
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        for (int x = 1; x <= 10000; x++) {
            int i = scanner.nextInt();
            if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            }
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) for (int x = 1; x <= 10000; x++) {
            int i = scanner.nextInt();
            if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            }
        } int x = 1; int x = 1; x 1 x <= 10000 x 10000 x++ x++ x {
            int i = scanner.nextInt();
            if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            }
        } {
            int i = scanner.nextInt();
            if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            }
        } int i = scanner.nextInt(); i scanner.nextInt() scanner.nextInt scanner if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            } i == 0 i 0 {
                break;
            } break; {
                System.out.println("Case " + x + ": " + i);
            } System.out.println("Case " + x + ": " + i) System.out.println System.out System System.out "Case " + x + ": " + i ": " "Case " + x + ": " + i "Case " x ": " i String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        for (int x = 1; x <= 10000; x++) {
            int i = scanner.nextInt();
            if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        for (int x = 1; x <= 10000; x++) {
            int i = scanner.nextInt();
            if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        for (int x = 1; x <= 10000; x++) {
            int i = scanner.nextInt();
            if (i == 0) {
                break;
            } else {
                System.out.println("Case " + x + ": " + i);
            }
        }
    }
}
