import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		for (int i = 1; i <= 10000; i++) {
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			System.out.println("Case" + " " + i + ":" + " " + n);

			if (n == 0) {
				break;
			}

		}

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		for (int i = 1; i <= 10000; i++) {
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			System.out.println("Case" + " " + i + ":" + " " + n);

			if (n == 0) {
				break;
			}

		}

	}

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

		Scanner sc = new Scanner(System.in);

		for (int i = 1; i <= 10000; i++) {
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			System.out.println("Case" + " " + i + ":" + " " + n);

			if (n == 0) {
				break;
			}

		}

	} main {

		Scanner sc = new Scanner(System.in);

		for (int i = 1; i <= 10000; i++) {
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			System.out.println("Case" + " " + i + ":" + " " + n);

			if (n == 0) {
				break;
			}

		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for (int i = 1; i <= 10000; i++) {
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			System.out.println("Case" + " " + i + ":" + " " + n);

			if (n == 0) {
				break;
			}

		} int i = 1; int i = 1; i 1 i <= 10000 i 10000 i++ i++ i {
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			System.out.println("Case" + " " + i + ":" + " " + n);

			if (n == 0) {
				break;
			}

		} {
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			System.out.println("Case" + " " + i + ":" + " " + n);

			if (n == 0) {
				break;
			}

		} String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc int n = Integer.parseInt(line); n Integer.parseInt(line) Integer.parseInt Integer line System.out.println("Case" + " " + i + ":" + " " + n) System.out.println System.out System System.out "Case" + " " + i + ":" + " " + n " " ":" i "Case" + " " + i + ":" + " " + n "Case" " " i ":" " " n if (n == 0) {
				break;
			} n == 0 n 0 {
				break;
			} break; String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		for (int i = 1; i <= 10000; i++) {
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			System.out.println("Case" + " " + i + ":" + " " + n);

			if (n == 0) {
				break;
			}

		}

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		for (int i = 1; i <= 10000; i++) {
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			System.out.println("Case" + " " + i + ":" + " " + n);

			if (n == 0) {
				break;
			}

		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		for (int i = 1; i <= 10000; i++) {
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			System.out.println("Case" + " " + i + ":" + " " + n);

			if (n == 0) {
				break;
			}

		}

	}

}