import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while (i < 10001) {
			String line = sc.nextLine();
			int x = Integer.parseInt(line);
			if (x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while (i < 10001) {
			String line = sc.nextLine();
			int x = Integer.parseInt(line);
			if (x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while (i < 10001) {
			String line = sc.nextLine();
			int x = Integer.parseInt(line);
			if (x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	} main {
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while (i < 10001) {
			String line = sc.nextLine();
			int x = Integer.parseInt(line);
			if (x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
			i++;
		}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while (i < 10001) {
			String line = sc.nextLine();
			int x = Integer.parseInt(line);
			if (x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while (i < 10001) {
			String line = sc.nextLine();
			int x = Integer.parseInt(line);
			if (x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while (i < 10001) {
			String line = sc.nextLine();
			int x = Integer.parseInt(line);
			if (x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	}

}