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