import java.io.*;

class Main{
	public static void main(String[] args)throws IOException{
		try{
 			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 			StringBuilder sb = new StringBuilder();
 			int i=1;
 			while(true){
 				int data = Integer.parseInt(br.readLine());
 				if(data == 0){
 					break;
 				}
 				else{
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				}
 			}
 			System.out.print(sb);
		}
		catch(Exception e){
			System.out.println(e);
		}
	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args)throws IOException{
		try{
 			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 			StringBuilder sb = new StringBuilder();
 			int i=1;
 			while(true){
 				int data = Integer.parseInt(br.readLine());
 				if(data == 0){
 					break;
 				}
 				else{
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				}
 			}
 			System.out.print(sb);
		}
		catch(Exception e){
			System.out.println(e);
		}
	}
} Main public static void main(String[] args)throws IOException{
		try{
 			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 			StringBuilder sb = new StringBuilder();
 			int i=1;
 			while(true){
 				int data = Integer.parseInt(br.readLine());
 				if(data == 0){
 					break;
 				}
 				else{
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				}
 			}
 			System.out.print(sb);
		}
		catch(Exception e){
			System.out.println(e);
		}
	} main {
		try{
 			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 			StringBuilder sb = new StringBuilder();
 			int i=1;
 			while(true){
 				int data = Integer.parseInt(br.readLine());
 				if(data == 0){
 					break;
 				}
 				else{
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				}
 			}
 			System.out.print(sb);
		}
		catch(Exception e){
			System.out.println(e);
		}
	} try{
 			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 			StringBuilder sb = new StringBuilder();
 			int i=1;
 			while(true){
 				int data = Integer.parseInt(br.readLine());
 				if(data == 0){
 					break;
 				}
 				else{
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				}
 			}
 			System.out.print(sb);
		}
		catch(Exception e){
			System.out.println(e);
		} catch(Exception e){
			System.out.println(e);
		} Exception e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
 			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 			StringBuilder sb = new StringBuilder();
 			int i=1;
 			while(true){
 				int data = Integer.parseInt(br.readLine());
 				if(data == 0){
 					break;
 				}
 				else{
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				}
 			}
 			System.out.print(sb);
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int i=1; i 1 while(true){
 				int data = Integer.parseInt(br.readLine());
 				if(data == 0){
 					break;
 				}
 				else{
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				}
 			} true {
 				int data = Integer.parseInt(br.readLine());
 				if(data == 0){
 					break;
 				}
 				else{
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				}
 			} int data = Integer.parseInt(br.readLine()); data Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(data == 0){
 					break;
 				}
 				else{
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				} data == 0 data 0 {
 					break;
 				} break; {
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				} sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n") sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)) sb.append("Case ").append(Integer.toString(i++)).append(": ").append sb.append("Case ").append(Integer.toString(i++)).append(": ") sb.append("Case ").append(Integer.toString(i++)).append sb.append("Case ").append(Integer.toString(i++)) sb.append("Case ").append sb.append("Case ") sb.append sb "Case " Integer.toString(i++) Integer.toString Integer i++ i ": " Integer.toString(data) Integer.toString Integer data "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args
import java.io.*;

class Main{
	public static void main(String[] args)throws IOException{
		try{
 			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 			StringBuilder sb = new StringBuilder();
 			int i=1;
 			while(true){
 				int data = Integer.parseInt(br.readLine());
 				if(data == 0){
 					break;
 				}
 				else{
 					sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 				}
 			}
 			System.out.print(sb);
		}
		catch(Exception e){
			System.out.println(e);
		}
	}
}