import java.util.Scanner;

public class Main {

	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String[] line = new String[10001];
		for (int i = 0; i < line.length; i++) {
			line[i] = sc.nextLine();
			if (line[i].equals("0")) {
				break;
			}
		}
		for (int i = 1; i < line.length; i++) {
			if (line[i - 1].equals("0")) {
				break;
			}
			int v = Integer.parseInt(line[i - 1]);
			System.out.println("Case " + i + ": " + v);
		}

	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String[] line = new String[10001];
		for (int i = 0; i < line.length; i++) {
			line[i] = sc.nextLine();
			if (line[i].equals("0")) {
				break;
			}
		}
		for (int i = 1; i < line.length; i++) {
			if (line[i - 1].equals("0")) {
				break;
			}
			int v = Integer.parseInt(line[i - 1]);
			System.out.println("Case " + i + ": " + v);
		}

	}
} Main public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String[] line = new String[10001];
		for (int i = 0; i < line.length; i++) {
			line[i] = sc.nextLine();
			if (line[i].equals("0")) {
				break;
			}
		}
		for (int i = 1; i < line.length; i++) {
			if (line[i - 1].equals("0")) {
				break;
			}
			int v = Integer.parseInt(line[i - 1]);
			System.out.println("Case " + i + ": " + v);
		}

	} main {

		Scanner sc = new Scanner(System.in);
		String[] line = new String[10001];
		for (int i = 0; i < line.length; i++) {
			line[i] = sc.nextLine();
			if (line[i].equals("0")) {
				break;
			}
		}
		for (int i = 1; i < line.length; i++) {
			if (line[i - 1].equals("0")) {
				break;
			}
			int v = Integer.parseInt(line[i - 1]);
			System.out.println("Case " + i + ": " + v);
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] line = new String[10001]; line new String[10001] 10001 for (int i = 0; i < line.length; i++) {
			line[i] = sc.nextLine();
			if (line[i].equals("0")) {
				break;
			}
		} int i = 0; int i = 0; i 0 i < line.length i line.length line line.length i++ i++ i {
			line[i] = sc.nextLine();
			if (line[i].equals("0")) {
				break;
			}
		} {
			line[i] = sc.nextLine();
			if (line[i].equals("0")) {
				break;
			}
		} line[i] = sc.nextLine() line[i] line i sc.nextLine() sc.nextLine sc if (line[i].equals("0")) {
				break;
			} line[i].equals("0") line[i].equals line[i] line i "0" {
				break;
			} break; for (int i = 1; i < line.length; i++) {
			if (line[i - 1].equals("0")) {
				break;
			}
			int v = Integer.parseInt(line[i - 1]);
			System.out.println("Case " + i + ": " + v);
		} int i = 1; int i = 1; i 1 i < line.length i line.length line line.length i++ i++ i {
			if (line[i - 1].equals("0")) {
				break;
			}
			int v = Integer.parseInt(line[i - 1]);
			System.out.println("Case " + i + ": " + v);
		} {
			if (line[i - 1].equals("0")) {
				break;
			}
			int v = Integer.parseInt(line[i - 1]);
			System.out.println("Case " + i + ": " + v);
		} if (line[i - 1].equals("0")) {
				break;
			} line[i - 1].equals("0") line[i - 1].equals line[i - 1] line i - 1 i 1 "0" {
				break;
			} break; int v = Integer.parseInt(line[i - 1]); v Integer.parseInt(line[i - 1]) Integer.parseInt Integer line[i - 1] line i - 1 i 1 System.out.println("Case " + i + ": " + v) System.out.println System.out System System.out "Case " + i + ": " + v ": " "Case " + i + ": " + v "Case " i ": " v String[] arges arges public class Main {

	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String[] line = new String[10001];
		for (int i = 0; i < line.length; i++) {
			line[i] = sc.nextLine();
			if (line[i].equals("0")) {
				break;
			}
		}
		for (int i = 1; i < line.length; i++) {
			if (line[i - 1].equals("0")) {
				break;
			}
			int v = Integer.parseInt(line[i - 1]);
			System.out.println("Case " + i + ": " + v);
		}

	}
} public class Main {

	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String[] line = new String[10001];
		for (int i = 0; i < line.length; i++) {
			line[i] = sc.nextLine();
			if (line[i].equals("0")) {
				break;
			}
		}
		for (int i = 1; i < line.length; i++) {
			if (line[i - 1].equals("0")) {
				break;
			}
			int v = Integer.parseInt(line[i - 1]);
			System.out.println("Case " + i + ": " + v);
		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String[] line = new String[10001];
		for (int i = 0; i < line.length; i++) {
			line[i] = sc.nextLine();
			if (line[i].equals("0")) {
				break;
			}
		}
		for (int i = 1; i < line.length; i++) {
			if (line[i - 1].equals("0")) {
				break;
			}
			int v = Integer.parseInt(line[i - 1]);
			System.out.println("Case " + i + ": " + v);
		}

	}
}