import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        int n;
        while ((n = sc.nextInt()) != 0) {
            System.out.println("Case " + i + ": " + n);
            i++;
        }
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        int n;
        while ((n = sc.nextInt()) != 0) {
            System.out.println("Case " + i + ": " + n);
            i++;
        }
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        int n;
        while ((n = sc.nextInt()) != 0) {
            System.out.println("Case " + i + ": " + n);
            i++;
        }
	} main {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        int n;
        while ((n = sc.nextInt()) != 0) {
            System.out.println("Case " + i + ": " + n);
            i++;
        }
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = 1; i 1 int n; n while ((n = sc.nextInt()) != 0) {
            System.out.println("Case " + i + ": " + n);
            i++;
        } (n = sc.nextInt()) != 0 (n = sc.nextInt()) n sc.nextInt() sc.nextInt sc 0 {
            System.out.println("Case " + i + ": " + n);
            i++;
        } System.out.println("Case " + i + ": " + n) System.out.println System.out System System.out "Case " + i + ": " + n ": " "Case " + i + ": " + n "Case " i ": " n i++ i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        int n;
        while ((n = sc.nextInt()) != 0) {
            System.out.println("Case " + i + ": " + n);
            i++;
        }
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        int n;
        while ((n = sc.nextInt()) != 0) {
            System.out.println("Case " + i + ": " + n);
            i++;
        }
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        int n;
        while ((n = sc.nextInt()) != 0) {
            System.out.println("Case " + i + ": " + n);
            i++;
        }
	}
}