import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num = new int[10000];
		for (int i = 0; i < 10000; i++) {
			String line = sc.nextLine();
			num[i] = Integer.parseInt(line);
			if (num[i] == 0) {
				break;
			}
		}
		for (int i = 0; i < num.length; i++) {
			if (num[i] == 0) {
				break;
			}
			System.out.println("Case " + (i + 1) + ": " + num[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num = new int[10000];
		for (int i = 0; i < 10000; i++) {
			String line = sc.nextLine();
			num[i] = Integer.parseInt(line);
			if (num[i] == 0) {
				break;
			}
		}
		for (int i = 0; i < num.length; i++) {
			if (num[i] == 0) {
				break;
			}
			System.out.println("Case " + (i + 1) + ": " + num[i]);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num = new int[10000];
		for (int i = 0; i < 10000; i++) {
			String line = sc.nextLine();
			num[i] = Integer.parseInt(line);
			if (num[i] == 0) {
				break;
			}
		}
		for (int i = 0; i < num.length; i++) {
			if (num[i] == 0) {
				break;
			}
			System.out.println("Case " + (i + 1) + ": " + num[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int[] num = new int[10000];
		for (int i = 0; i < 10000; i++) {
			String line = sc.nextLine();
			num[i] = Integer.parseInt(line);
			if (num[i] == 0) {
				break;
			}
		}
		for (int i = 0; i < num.length; i++) {
			if (num[i] == 0) {
				break;
			}
			System.out.println("Case " + (i + 1) + ": " + num[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] num = new int[10000]; num new int[10000] 10000 for (int i = 0; i < 10000; i++) {
			String line = sc.nextLine();
			num[i] = Integer.parseInt(line);
			if (num[i] == 0) {
				break;
			}
		} int i = 0; int i = 0; i 0 i < 10000 i 10000 i++ i++ i {
			String line = sc.nextLine();
			num[i] = Integer.parseInt(line);
			if (num[i] == 0) {
				break;
			}
		} {
			String line = sc.nextLine();
			num[i] = Integer.parseInt(line);
			if (num[i] == 0) {
				break;
			}
		} String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc num[i] = Integer.parseInt(line) num[i] num i Integer.parseInt(line) Integer.parseInt Integer line if (num[i] == 0) {
				break;
			} num[i] == 0 num[i] num i 0 {
				break;
			} break; for (int i = 0; i < num.length; i++) {
			if (num[i] == 0) {
				break;
			}
			System.out.println("Case " + (i + 1) + ": " + num[i]);
		} int i = 0; int i = 0; i 0 i < num.length i num.length num num.length i++ i++ i {
			if (num[i] == 0) {
				break;
			}
			System.out.println("Case " + (i + 1) + ": " + num[i]);
		} {
			if (num[i] == 0) {
				break;
			}
			System.out.println("Case " + (i + 1) + ": " + num[i]);
		} if (num[i] == 0) {
				break;
			} num[i] == 0 num[i] num i 0 {
				break;
			} break; System.out.println("Case " + (i + 1) + ": " + num[i]) System.out.println System.out System System.out "Case " + (i + 1) + ": " + num[i] ": " "Case " + (i + 1) + ": " + num[i] "Case " (i + 1) i 1 ": " num[i] num i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num = new int[10000];
		for (int i = 0; i < 10000; i++) {
			String line = sc.nextLine();
			num[i] = Integer.parseInt(line);
			if (num[i] == 0) {
				break;
			}
		}
		for (int i = 0; i < num.length; i++) {
			if (num[i] == 0) {
				break;
			}
			System.out.println("Case " + (i + 1) + ": " + num[i]);
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num = new int[10000];
		for (int i = 0; i < 10000; i++) {
			String line = sc.nextLine();
			num[i] = Integer.parseInt(line);
			if (num[i] == 0) {
				break;
			}
		}
		for (int i = 0; i < num.length; i++) {
			if (num[i] == 0) {
				break;
			}
			System.out.println("Case " + (i + 1) + ": " + num[i]);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num = new int[10000];
		for (int i = 0; i < 10000; i++) {
			String line = sc.nextLine();
			num[i] = Integer.parseInt(line);
			if (num[i] == 0) {
				break;
			}
		}
		for (int i = 0; i < num.length; i++) {
			if (num[i] == 0) {
				break;
			}
			System.out.println("Case " + (i + 1) + ": " + num[i]);
		}
	}
}