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

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

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