import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int i;
		for (i = 1;; i++) {

			int x = sc.nextInt();

			if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			}

		}
	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int i;
		for (i = 1;; i++) {

			int x = sc.nextInt();

			if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			}

		}
	}

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

		Scanner sc = new Scanner(System.in);

		int i;
		for (i = 1;; i++) {

			int x = sc.nextInt();

			if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			}

		}
	} main {

		Scanner sc = new Scanner(System.in);

		int i;
		for (i = 1;; i++) {

			int x = sc.nextInt();

			if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			}

		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i; i for (i = 1;; i++) {

			int x = sc.nextInt();

			if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			}

		} i = 1; i = 1 i 1 i++ i++ i {

			int x = sc.nextInt();

			if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			}

		} {

			int x = sc.nextInt();

			if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			}

		} int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			} x != 0 x 0 {
				System.out.printf("Case %d: %d\n", i, x);
			} System.out.printf("Case %d: %d\n", i, x) System.out.printf System.out System System.out "Case %d: %d\n" i x {

				break;

			} break; String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int i;
		for (i = 1;; i++) {

			int x = sc.nextInt();

			if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			}

		}
	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int i;
		for (i = 1;; i++) {

			int x = sc.nextInt();

			if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			}

		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int i;
		for (i = 1;; i++) {

			int x = sc.nextInt();

			if (x != 0) {
				System.out.printf("Case %d: %d\n", i, x);
			} else {

				break;

			}

		}
	}

}