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

public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int idx = 1;
		String str;

		StringBuilder output = new StringBuilder();
		try {

			while(true){
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			}
			if (output.length() > 0) {
				System.out.print(output.toString());
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} 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) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int idx = 1;
		String str;

		StringBuilder output = new StringBuilder();
		try {

			while(true){
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			}
			if (output.length() > 0) {
				System.out.print(output.toString());
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int idx = 1;
		String str;

		StringBuilder output = new StringBuilder();
		try {

			while(true){
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			}
			if (output.length() > 0) {
				System.out.print(output.toString());
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int idx = 1;
		String str;

		StringBuilder output = new StringBuilder();
		try {

			while(true){
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			}
			if (output.length() > 0) {
				System.out.print(output.toString());
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int idx = 1; idx 1 String str; str StringBuilder output = new StringBuilder(); output new StringBuilder() try {

			while(true){
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			}
			if (output.length() > 0) {
				System.out.print(output.toString());
			}

		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {

			while(true){
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			}
			if (output.length() > 0) {
				System.out.print(output.toString());
			}

		} while(true){
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			} true {
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			} str = br.readLine() str br.readLine() br.readLine br if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				} str.equals("0") str.equals str "0" {
					break;
				} break; {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				} output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n") output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str) output.append("Case ").append(String.valueOf(idx))
							.append(": ").append output.append("Case ").append(String.valueOf(idx))
							.append(": ") output.append("Case ").append(String.valueOf(idx))
							.append output.append("Case ").append(String.valueOf(idx)) output.append("Case ").append output.append("Case ") output.append output "Case " String.valueOf(idx) String.valueOf String idx ": " str "\n" if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				} idx % 100 == 0 idx % 100 idx 100 0 {
					System.out.print(output.toString());
					output.setLength(0);
				} System.out.print(output.toString()) System.out.print System.out System System.out output.toString() output.toString output output.setLength(0) output.setLength output 0 idx++ idx if (output.length() > 0) {
				System.out.print(output.toString());
			} output.length() > 0 output.length() output.length output 0 {
				System.out.print(output.toString());
			} System.out.print(output.toString()) System.out.print System.out System System.out output.toString() output.toString output String[] args args public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int idx = 1;
		String str;

		StringBuilder output = new StringBuilder();
		try {

			while(true){
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			}
			if (output.length() > 0) {
				System.out.print(output.toString());
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int idx = 1;
		String str;

		StringBuilder output = new StringBuilder();
		try {

			while(true){
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			}
			if (output.length() > 0) {
				System.out.print(output.toString());
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int idx = 1;
		String str;

		StringBuilder output = new StringBuilder();
		try {

			while(true){
				str = br.readLine();
				if (str.equals("0")) {
					break;
				} else {
					output.append("Case ").append(String.valueOf(idx))
							.append(": ").append(str).append("\n");
				}
				if (idx % 100 == 0) {
					System.out.print(output.toString());
					output.setLength(0);
				}
				idx++;
			}
			if (output.length() > 0) {
				System.out.print(output.toString());
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}