import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);
		List<Integer> array = new ArrayList<Integer>();

		while (true) {
			Integer n = sc.nextInt();
			if (0 == n.intValue()) {
				break;
			}
			array.add(n);
		}

		for (int i = 0; i < array.size(); i++) {
			System.out.println("Case " + (i + 1) +  ": " + array.get(i));
		}

		sc.close();
	}

} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		List<Integer> array = new ArrayList<Integer>();

		while (true) {
			Integer n = sc.nextInt();
			if (0 == n.intValue()) {
				break;
			}
			array.add(n);
		}

		for (int i = 0; i < array.size(); i++) {
			System.out.println("Case " + (i + 1) +  ": " + array.get(i));
		}

		sc.close();
	}

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

		Scanner sc = new Scanner(System.in);
		List<Integer> array = new ArrayList<Integer>();

		while (true) {
			Integer n = sc.nextInt();
			if (0 == n.intValue()) {
				break;
			}
			array.add(n);
		}

		for (int i = 0; i < array.size(); i++) {
			System.out.println("Case " + (i + 1) +  ": " + array.get(i));
		}

		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);
		List<Integer> array = new ArrayList<Integer>();

		while (true) {
			Integer n = sc.nextInt();
			if (0 == n.intValue()) {
				break;
			}
			array.add(n);
		}

		for (int i = 0; i < array.size(); i++) {
			System.out.println("Case " + (i + 1) +  ": " + array.get(i));
		}

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> array = new ArrayList<Integer>(); array new ArrayList<Integer>() while (true) {
			Integer n = sc.nextInt();
			if (0 == n.intValue()) {
				break;
			}
			array.add(n);
		} true {
			Integer n = sc.nextInt();
			if (0 == n.intValue()) {
				break;
			}
			array.add(n);
		} Integer n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if (0 == n.intValue()) {
				break;
			} 0 == n.intValue() 0 n.intValue() n.intValue n {
				break;
			} break; array.add(n) array.add array n for (int i = 0; i < array.size(); i++) {
			System.out.println("Case " + (i + 1) +  ": " + array.get(i));
		} int i = 0; int i = 0; i 0 i < array.size() i array.size() array.size array i++ i++ i {
			System.out.println("Case " + (i + 1) +  ": " + array.get(i));
		} {
			System.out.println("Case " + (i + 1) +  ": " + array.get(i));
		} System.out.println("Case " + (i + 1) +  ": " + array.get(i)) System.out.println System.out System System.out "Case " + (i + 1) +  ": " + array.get(i) ": " "Case " + (i + 1) +  ": " + array.get(i) "Case " (i + 1) i 1 ": " array.get(i) array.get array i sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		List<Integer> array = new ArrayList<Integer>();

		while (true) {
			Integer n = sc.nextInt();
			if (0 == n.intValue()) {
				break;
			}
			array.add(n);
		}

		for (int i = 0; i < array.size(); i++) {
			System.out.println("Case " + (i + 1) +  ": " + array.get(i));
		}

		sc.close();
	}

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

		Scanner sc = new Scanner(System.in);
		List<Integer> array = new ArrayList<Integer>();

		while (true) {
			Integer n = sc.nextInt();
			if (0 == n.intValue()) {
				break;
			}
			array.add(n);
		}

		for (int i = 0; i < array.size(); i++) {
			System.out.println("Case " + (i + 1) +  ": " + array.get(i));
		}

		sc.close();
	}

} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);
		List<Integer> array = new ArrayList<Integer>();

		while (true) {
			Integer n = sc.nextInt();
			if (0 == n.intValue()) {
				break;
			}
			array.add(n);
		}

		for (int i = 0; i < array.size(); i++) {
			System.out.println("Case " + (i + 1) +  ": " + array.get(i));
		}

		sc.close();
	}

}