import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder text = new StringBuilder();
		int count = 1;
		while (true) {
			int num = scan.nextInt();
			if (num == 0) {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} else {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			}
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder text = new StringBuilder();
		int count = 1;
		while (true) {
			int num = scan.nextInt();
			if (num == 0) {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} else {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			}
		}
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder text = new StringBuilder();
		int count = 1;
		while (true) {
			int num = scan.nextInt();
			if (num == 0) {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} else {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		StringBuilder text = new StringBuilder();
		int count = 1;
		while (true) {
			int num = scan.nextInt();
			if (num == 0) {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} else {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) StringBuilder text = new StringBuilder(); text new StringBuilder() int count = 1; count 1 while (true) {
			int num = scan.nextInt();
			if (num == 0) {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} else {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			}
		} true {
			int num = scan.nextInt();
			if (num == 0) {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} else {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			}
		} int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan if (num == 0) {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} else {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			} num == 0 num 0 {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} scan.close() scan.close scan text.deleteCharAt(text.lastIndexOf("\n")) text.deleteCharAt text text.lastIndexOf("\n") text.lastIndexOf text "\n" System.out.println(text.toString()) System.out.println System.out System System.out text.toString() text.toString text break; {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			} text.append("Case ").append(count).append(": ").append(num).append("\n") text.append("Case ").append(count).append(": ").append(num).append text.append("Case ").append(count).append(": ").append(num) text.append("Case ").append(count).append(": ").append text.append("Case ").append(count).append(": ") text.append("Case ").append(count).append text.append("Case ").append(count) text.append("Case ").append text.append("Case ") text.append text "Case " count ": " num "\n" count++ count String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder text = new StringBuilder();
		int count = 1;
		while (true) {
			int num = scan.nextInt();
			if (num == 0) {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} else {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			}
		}
	}

} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder text = new StringBuilder();
		int count = 1;
		while (true) {
			int num = scan.nextInt();
			if (num == 0) {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} else {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			}
		}
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder text = new StringBuilder();
		int count = 1;
		while (true) {
			int num = scan.nextInt();
			if (num == 0) {
				scan.close();
				text.deleteCharAt(text.lastIndexOf("\n"));
				System.out.println(text.toString());
				break;
			} else {
				text.append("Case ").append(count).append(": ").append(num).append("\n");
				count++;
			}
		}
	}

}