import java.util.Scanner;

/**
 * @author ??\???
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		for (int i = 1, x = scanner.nextInt(); x != 0; i++, x = scanner.nextInt()) {
			System.out.println("Case " + i + ": " + x);
		}
		scanner.close();
	}

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

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		for (int i = 1, x = scanner.nextInt(); x != 0; i++, x = scanner.nextInt()) {
			System.out.println("Case " + i + ": " + x);
		}
		scanner.close();
	}

} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		for (int i = 1, x = scanner.nextInt(); x != 0; i++, x = scanner.nextInt()) {
			System.out.println("Case " + i + ": " + x);
		}
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		for (int i = 1, x = scanner.nextInt(); x != 0; i++, x = scanner.nextInt()) {
			System.out.println("Case " + i + ": " + x);
		}
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) for (int i = 1, x = scanner.nextInt(); x != 0; i++, x = scanner.nextInt()) {
			System.out.println("Case " + i + ": " + x);
		} int i = 1, x = scanner.nextInt(); int i = 1 i 1 x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner x != 0 x 0 i++, x = scanner.nextInt() i++ i x = scanner.nextInt() x scanner.nextInt() scanner.nextInt scanner {
			System.out.println("Case " + i + ": " + x);
		} {
			System.out.println("Case " + i + ": " + x);
		} System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x scanner.close() scanner.close scanner String[] args args public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		for (int i = 1, x = scanner.nextInt(); x != 0; i++, x = scanner.nextInt()) {
			System.out.println("Case " + i + ": " + x);
		}
		scanner.close();
	}

} public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		for (int i = 1, x = scanner.nextInt(); x != 0; i++, x = scanner.nextInt()) {
			System.out.println("Case " + i + ": " + x);
		}
		scanner.close();
	}

} Main
import java.util.Scanner;

/**
 * @author ??\???
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		for (int i = 1, x = scanner.nextInt(); x != 0; i++, x = scanner.nextInt()) {
			System.out.println("Case " + i + ": " + x);
		}
		scanner.close();
	}

}