import java.io.*;
import java.util.Scanner;

public class Main{
	public static void main(String[] args) throws IOException{
		//
		int[] data = new int[10001];
		Scanner input = new Scanner(System.in);
		for(int i=0; i < 10001; i++){
			String str = input.nextLine();
			data[i] = Integer.parseInt(str);
			if( data[i] == 0){
				break;
			}
		}
		
		
		
		for(int i=0; i < 10001; i++){
			if( data[i] == 0){
				break;
			}
			System.out.println("Case "+ (i+1) + ": " + data[i]);
		}
		//
	}
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) throws IOException{
		//
		int[] data = new int[10001];
		Scanner input = new Scanner(System.in);
		for(int i=0; i < 10001; i++){
			String str = input.nextLine();
			data[i] = Integer.parseInt(str);
			if( data[i] == 0){
				break;
			}
		}
		
		
		
		for(int i=0; i < 10001; i++){
			if( data[i] == 0){
				break;
			}
			System.out.println("Case "+ (i+1) + ": " + data[i]);
		}
		//
	}
} Main public static void main(String[] args) throws IOException{
		//
		int[] data = new int[10001];
		Scanner input = new Scanner(System.in);
		for(int i=0; i < 10001; i++){
			String str = input.nextLine();
			data[i] = Integer.parseInt(str);
			if( data[i] == 0){
				break;
			}
		}
		
		
		
		for(int i=0; i < 10001; i++){
			if( data[i] == 0){
				break;
			}
			System.out.println("Case "+ (i+1) + ": " + data[i]);
		}
		//
	} main {
		//
		int[] data = new int[10001];
		Scanner input = new Scanner(System.in);
		for(int i=0; i < 10001; i++){
			String str = input.nextLine();
			data[i] = Integer.parseInt(str);
			if( data[i] == 0){
				break;
			}
		}
		
		
		
		for(int i=0; i < 10001; i++){
			if( data[i] == 0){
				break;
			}
			System.out.println("Case "+ (i+1) + ": " + data[i]);
		}
		//
	} int[] data = new int[10001]; data new int[10001] 10001 Scanner input = new Scanner(System.in); input new Scanner(System.in) for(int i=0; i < 10001; i++){
			String str = input.nextLine();
			data[i] = Integer.parseInt(str);
			if( data[i] == 0){
				break;
			}
		} int i=0; int i=0; i 0 i < 10001 i 10001 i++ i++ i {
			String str = input.nextLine();
			data[i] = Integer.parseInt(str);
			if( data[i] == 0){
				break;
			}
		} {
			String str = input.nextLine();
			data[i] = Integer.parseInt(str);
			if( data[i] == 0){
				break;
			}
		} String str = input.nextLine(); str input.nextLine() input.nextLine input data[i] = Integer.parseInt(str) data[i] data i Integer.parseInt(str) Integer.parseInt Integer str if( data[i] == 0){
				break;
			} data[i] == 0 data[i] data i 0 {
				break;
			} break; for(int i=0; i < 10001; i++){
			if( data[i] == 0){
				break;
			}
			System.out.println("Case "+ (i+1) + ": " + data[i]);
		} int i=0; int i=0; i 0 i < 10001 i 10001 i++ i++ i {
			if( data[i] == 0){
				break;
			}
			System.out.println("Case "+ (i+1) + ": " + data[i]);
		} {
			if( data[i] == 0){
				break;
			}
			System.out.println("Case "+ (i+1) + ": " + data[i]);
		} if( data[i] == 0){
				break;
			} data[i] == 0 data[i] data i 0 {
				break;
			} break; System.out.println("Case "+ (i+1) + ": " + data[i]) System.out.println System.out System System.out "Case "+ (i+1) + ": " + data[i] ": " "Case "+ (i+1) + ": " + data[i] "Case " (i+1) i 1 ": " data[i] data i String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		//
		int[] data = new int[10001];
		Scanner input = new Scanner(System.in);
		for(int i=0; i < 10001; i++){
			String str = input.nextLine();
			data[i] = Integer.parseInt(str);
			if( data[i] == 0){
				break;
			}
		}
		
		
		
		for(int i=0; i < 10001; i++){
			if( data[i] == 0){
				break;
			}
			System.out.println("Case "+ (i+1) + ": " + data[i]);
		}
		//
	}
} public class Main{
	public static void main(String[] args) throws IOException{
		//
		int[] data = new int[10001];
		Scanner input = new Scanner(System.in);
		for(int i=0; i < 10001; i++){
			String str = input.nextLine();
			data[i] = Integer.parseInt(str);
			if( data[i] == 0){
				break;
			}
		}
		
		
		
		for(int i=0; i < 10001; i++){
			if( data[i] == 0){
				break;
			}
			System.out.println("Case "+ (i+1) + ": " + data[i]);
		}
		//
	}
} Main
import java.io.*;
import java.util.Scanner;

public class Main{
	public static void main(String[] args) throws IOException{
		//
		int[] data = new int[10001];
		Scanner input = new Scanner(System.in);
		for(int i=0; i < 10001; i++){
			String str = input.nextLine();
			data[i] = Integer.parseInt(str);
			if( data[i] == 0){
				break;
			}
		}
		
		
		
		for(int i=0; i < 10001; i++){
			if( data[i] == 0){
				break;
			}
			System.out.println("Case "+ (i+1) + ": " + data[i]);
		}
		//
	}
}