import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int i=0;
		int data[]=new int[10000];
		while(true){
			int x=sc.nextInt();

			if(x==0)	break;
			else{
				data[i]=x;
				i++;
			}
		}

		for(int j=0;j<i;j++)	System.out.println("Case "+(j+1)+": "+data[j]);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int i=0;
		int data[]=new int[10000];
		while(true){
			int x=sc.nextInt();

			if(x==0)	break;
			else{
				data[i]=x;
				i++;
			}
		}

		for(int j=0;j<i;j++)	System.out.println("Case "+(j+1)+": "+data[j]);
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int i=0;
		int data[]=new int[10000];
		while(true){
			int x=sc.nextInt();

			if(x==0)	break;
			else{
				data[i]=x;
				i++;
			}
		}

		for(int j=0;j<i;j++)	System.out.println("Case "+(j+1)+": "+data[j]);
	} main {
		Scanner sc=new Scanner(System.in);

		int i=0;
		int data[]=new int[10000];
		while(true){
			int x=sc.nextInt();

			if(x==0)	break;
			else{
				data[i]=x;
				i++;
			}
		}

		for(int j=0;j<i;j++)	System.out.println("Case "+(j+1)+": "+data[j]);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int i=0; i 0 int data[]=new int[10000]; data new int[10000] 10000 while(true){
			int x=sc.nextInt();

			if(x==0)	break;
			else{
				data[i]=x;
				i++;
			}
		} true {
			int x=sc.nextInt();

			if(x==0)	break;
			else{
				data[i]=x;
				i++;
			}
		} int x=sc.nextInt(); x sc.nextInt() sc.nextInt sc if(x==0)	break;
			else{
				data[i]=x;
				i++;
			} x==0 x 0 break; {
				data[i]=x;
				i++;
			} data[i]=x data[i] data i x i++ i for(int j=0;j<i;j++)	System.out.println("Case "+(j+1)+": "+data[j]); int j=0; int j=0; j 0 j<i j i j++ j++ j System.out.println("Case "+(j+1)+": "+data[j]); System.out.println("Case "+(j+1)+": "+data[j]) System.out.println System.out System System.out "Case "+(j+1)+": "+data[j] ": " "Case "+(j+1)+": "+data[j] "Case " (j+1) j 1 ": " data[j] data j String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int i=0;
		int data[]=new int[10000];
		while(true){
			int x=sc.nextInt();

			if(x==0)	break;
			else{
				data[i]=x;
				i++;
			}
		}

		for(int j=0;j<i;j++)	System.out.println("Case "+(j+1)+": "+data[j]);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int i=0;
		int data[]=new int[10000];
		while(true){
			int x=sc.nextInt();

			if(x==0)	break;
			else{
				data[i]=x;
				i++;
			}
		}

		for(int j=0;j<i;j++)	System.out.println("Case "+(j+1)+": "+data[j]);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int i=0;
		int data[]=new int[10000];
		while(true){
			int x=sc.nextInt();

			if(x==0)	break;
			else{
				data[i]=x;
				i++;
			}
		}

		for(int j=0;j<i;j++)	System.out.println("Case "+(j+1)+": "+data[j]);
	}
}