import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a[] = new int[20000],i=0;
		while((a[i]=Integer.parseInt(br.readLine()))!=0){
			i++;
		}
		int j;
		for(j=1;j<=i;j++){
			System.out.println("Case "+j+": "+a[j-1]);;
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a[] = new int[20000],i=0;
		while((a[i]=Integer.parseInt(br.readLine()))!=0){
			i++;
		}
		int j;
		for(j=1;j<=i;j++){
			System.out.println("Case "+j+": "+a[j-1]);;
		}
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a[] = new int[20000],i=0;
		while((a[i]=Integer.parseInt(br.readLine()))!=0){
			i++;
		}
		int j;
		for(j=1;j<=i;j++){
			System.out.println("Case "+j+": "+a[j-1]);;
		}
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a[] = new int[20000],i=0;
		while((a[i]=Integer.parseInt(br.readLine()))!=0){
			i++;
		}
		int j;
		for(j=1;j<=i;j++){
			System.out.println("Case "+j+": "+a[j-1]);;
		}
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int a[] = new int[20000] a new int[20000] 20000 i=0; i 0 while((a[i]=Integer.parseInt(br.readLine()))!=0){
			i++;
		} (a[i]=Integer.parseInt(br.readLine()))!=0 (a[i]=Integer.parseInt(br.readLine())) a[i] a i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br 0 {
			i++;
		} i++ i int j; j for(j=1;j<=i;j++){
			System.out.println("Case "+j+": "+a[j-1]);;
		} j=1; j=1 j 1 j<=i j i j++ j++ j {
			System.out.println("Case "+j+": "+a[j-1]);;
		} {
			System.out.println("Case "+j+": "+a[j-1]);;
		} System.out.println("Case "+j+": "+a[j-1]) System.out.println System.out System System.out "Case "+j+": "+a[j-1] ": " "Case "+j+": "+a[j-1] "Case " j ": " a[j-1] a j-1 j 1 String[] args args public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a[] = new int[20000],i=0;
		while((a[i]=Integer.parseInt(br.readLine()))!=0){
			i++;
		}
		int j;
		for(j=1;j<=i;j++){
			System.out.println("Case "+j+": "+a[j-1]);;
		}
	}
} public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a[] = new int[20000],i=0;
		while((a[i]=Integer.parseInt(br.readLine()))!=0){
			i++;
		}
		int j;
		for(j=1;j<=i;j++){
			System.out.println("Case "+j+": "+a[j-1]);;
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a[] = new int[20000],i=0;
		while((a[i]=Integer.parseInt(br.readLine()))!=0){
			i++;
		}
		int j;
		for(j=1;j<=i;j++){
			System.out.println("Case "+j+": "+a[j-1]);;
		}
	}
}