import java.util.Scanner;

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


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


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


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


} Main
import java.util.Scanner;

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


}