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


public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int i=1;
		while(true){
			int data= Integer.parseInt(reader.readLine());
			if(data==0)
				break;
			
			builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
		}
		System.out.print(builder);
	}
} 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 reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int i=1;
		while(true){
			int data= Integer.parseInt(reader.readLine());
			if(data==0)
				break;
			
			builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
		}
		System.out.print(builder);
	}
} Main public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int i=1;
		while(true){
			int data= Integer.parseInt(reader.readLine());
			if(data==0)
				break;
			
			builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
		}
		System.out.print(builder);
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int i=1;
		while(true){
			int data= Integer.parseInt(reader.readLine());
			if(data==0)
				break;
			
			builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
		}
		System.out.print(builder);
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) StringBuilder builder = new StringBuilder(); builder new StringBuilder() int i=1; i 1 while(true){
			int data= Integer.parseInt(reader.readLine());
			if(data==0)
				break;
			
			builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
		} true {
			int data= Integer.parseInt(reader.readLine());
			if(data==0)
				break;
			
			builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
		} int data= Integer.parseInt(reader.readLine()); data Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader if(data==0)
				break; data==0 data 0 break; builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n") builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)) builder.append("Case ").append(Integer.toString(i++)).append(": ").append builder.append("Case ").append(Integer.toString(i++)).append(": ") builder.append("Case ").append(Integer.toString(i++)).append builder.append("Case ").append(Integer.toString(i++)) builder.append("Case ").append builder.append("Case ") builder.append builder "Case " Integer.toString(i++) Integer.toString Integer i++ i ": " Integer.toString(data) Integer.toString Integer data "\n" System.out.print(builder) System.out.print System.out System System.out builder String args[] args public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int i=1;
		while(true){
			int data= Integer.parseInt(reader.readLine());
			if(data==0)
				break;
			
			builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
		}
		System.out.print(builder);
	}
} public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int i=1;
		while(true){
			int data= Integer.parseInt(reader.readLine());
			if(data==0)
				break;
			
			builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
		}
		System.out.print(builder);
	}
} 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 reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int i=1;
		while(true){
			int data= Integer.parseInt(reader.readLine());
			if(data==0)
				break;
			
			builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
		}
		System.out.print(builder);
	}
}