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 num = Integer.parseInt(br.readLine());
		for(int i =1; i<10001; i++){
			if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			}
		}
	}
} 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 num = Integer.parseInt(br.readLine());
		for(int i =1; i<10001; i++){
			if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			}
		}
	}
} Main public static void main(String[] args)throws IOException {
		BufferedReader br = new  BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		for(int i =1; i<10001; i++){
			if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			}
		}
	} main {
		BufferedReader br = new  BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		for(int i =1; i<10001; i++){
			if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			}
		}
	} BufferedReader br = new  BufferedReader(new InputStreamReader(System.in)); br new  BufferedReader(new InputStreamReader(System.in)) int num = Integer.parseInt(br.readLine()); num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i =1; i<10001; i++){
			if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			}
		} int i =1; int i =1; i 1 i<10001 i 10001 i++ i++ i {
			if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			}
		} {
			if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			}
		} if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			} num != 0 num 0 {
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			} System.out.println("Case "+ i +": " + num ) System.out.println System.out System System.out "Case "+ i +": " + num ": " "Case "+ i +": " + num "Case " i ": " num num = Integer.parseInt(br.readLine()) num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br {
				break;
			} break; String[] args args public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new  BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		for(int i =1; i<10001; i++){
			if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			}
		}
	}
} public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new  BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		for(int i =1; i<10001; i++){
			if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			}
		}
	}
} 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 num = Integer.parseInt(br.readLine());
		for(int i =1; i<10001; i++){
			if(num != 0){
				System.out.println("Case "+ i +": " + num );
				num = Integer.parseInt(br.readLine());
			}else{
				break;
			}
		}
	}
}