import java.io.*;

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

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