import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;


class Main {
	public static void main(String[] args) throws IOException {
		ArrayList<String> ss = new ArrayList<String>();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String i = new String(in.readLine());
			if(i.equals("0")){
				break;
			}
			else{
				ss.add(i);
			}
			
		}
		for(int i = 0;i < ss.size() ;i++){
			System.out.println("Case "+(i+1)+": " + ss.get(i));
		}
		
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util class Main {
	public static void main(String[] args) throws IOException {
		ArrayList<String> ss = new ArrayList<String>();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String i = new String(in.readLine());
			if(i.equals("0")){
				break;
			}
			else{
				ss.add(i);
			}
			
		}
		for(int i = 0;i < ss.size() ;i++){
			System.out.println("Case "+(i+1)+": " + ss.get(i));
		}
		
	}

} Main public static void main(String[] args) throws IOException {
		ArrayList<String> ss = new ArrayList<String>();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String i = new String(in.readLine());
			if(i.equals("0")){
				break;
			}
			else{
				ss.add(i);
			}
			
		}
		for(int i = 0;i < ss.size() ;i++){
			System.out.println("Case "+(i+1)+": " + ss.get(i));
		}
		
	} main {
		ArrayList<String> ss = new ArrayList<String>();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String i = new String(in.readLine());
			if(i.equals("0")){
				break;
			}
			else{
				ss.add(i);
			}
			
		}
		for(int i = 0;i < ss.size() ;i++){
			System.out.println("Case "+(i+1)+": " + ss.get(i));
		}
		
	} ArrayList<String> ss = new ArrayList<String>(); ss new ArrayList<String>() BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) while(true){
			String i = new String(in.readLine());
			if(i.equals("0")){
				break;
			}
			else{
				ss.add(i);
			}
			
		} true {
			String i = new String(in.readLine());
			if(i.equals("0")){
				break;
			}
			else{
				ss.add(i);
			}
			
		} String i = new String(in.readLine()); i new String(in.readLine()) if(i.equals("0")){
				break;
			}
			else{
				ss.add(i);
			} i.equals("0") i.equals i "0" {
				break;
			} break; {
				ss.add(i);
			} ss.add(i) ss.add ss i for(int i = 0;i < ss.size() ;i++){
			System.out.println("Case "+(i+1)+": " + ss.get(i));
		} int i = 0; int i = 0; i 0 i < ss.size() i ss.size() ss.size ss i++ i++ i {
			System.out.println("Case "+(i+1)+": " + ss.get(i));
		} {
			System.out.println("Case "+(i+1)+": " + ss.get(i));
		} System.out.println("Case "+(i+1)+": " + ss.get(i)) System.out.println System.out System System.out "Case "+(i+1)+": " + ss.get(i) ": " "Case "+(i+1)+": " + ss.get(i) "Case " (i+1) i 1 ": " ss.get(i) ss.get ss i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;


class Main {
	public static void main(String[] args) throws IOException {
		ArrayList<String> ss = new ArrayList<String>();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String i = new String(in.readLine());
			if(i.equals("0")){
				break;
			}
			else{
				ss.add(i);
			}
			
		}
		for(int i = 0;i < ss.size() ;i++){
			System.out.println("Case "+(i+1)+": " + ss.get(i));
		}
		
	}

}