

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i = 0;
		int num = 0;
		String str;
		ArrayList<Integer> numList = new ArrayList<Integer>();
		while (true) {
			str = br.readLine();
			num = Integer.parseInt(str);
			if (num == 0) {
				break;
			}
			numList.add(num);
			i++;
		}
		int length = i;
		for (i = 0; i < length; i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i = 0;
		int num = 0;
		String str;
		ArrayList<Integer> numList = new ArrayList<Integer>();
		while (true) {
			str = br.readLine();
			num = Integer.parseInt(str);
			if (num == 0) {
				break;
			}
			numList.add(num);
			i++;
		}
		int length = i;
		for (i = 0; i < length; i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}

	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i = 0;
		int num = 0;
		String str;
		ArrayList<Integer> numList = new ArrayList<Integer>();
		while (true) {
			str = br.readLine();
			num = Integer.parseInt(str);
			if (num == 0) {
				break;
			}
			numList.add(num);
			i++;
		}
		int length = i;
		for (i = 0; i < length; i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i = 0;
		int num = 0;
		String str;
		ArrayList<Integer> numList = new ArrayList<Integer>();
		while (true) {
			str = br.readLine();
			num = Integer.parseInt(str);
			if (num == 0) {
				break;
			}
			numList.add(num);
			i++;
		}
		int length = i;
		for (i = 0; i < length; i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int i = 0; i 0 int num = 0; num 0 String str; str ArrayList<Integer> numList = new ArrayList<Integer>(); numList new ArrayList<Integer>() while (true) {
			str = br.readLine();
			num = Integer.parseInt(str);
			if (num == 0) {
				break;
			}
			numList.add(num);
			i++;
		} true {
			str = br.readLine();
			num = Integer.parseInt(str);
			if (num == 0) {
				break;
			}
			numList.add(num);
			i++;
		} str = br.readLine() str br.readLine() br.readLine br num = Integer.parseInt(str) num Integer.parseInt(str) Integer.parseInt Integer str if (num == 0) {
				break;
			} num == 0 num 0 {
				break;
			} break; numList.add(num) numList.add numList num i++ i int length = i; length i for (i = 0; i < length; i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		} i = 0; i = 0 i 0 i < length i length i++ i++ i {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		} {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		} System.out.println("Case " + (i + 1) + ": " + numList.get(i)) System.out.println System.out System System.out "Case " + (i + 1) + ": " + numList.get(i) ": " "Case " + (i + 1) + ": " + numList.get(i) "Case " (i + 1) i 1 ": " numList.get(i) numList.get numList i String[] args args


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i = 0;
		int num = 0;
		String str;
		ArrayList<Integer> numList = new ArrayList<Integer>();
		while (true) {
			str = br.readLine();
			num = Integer.parseInt(str);
			if (num == 0) {
				break;
			}
			numList.add(num);
			i++;
		}
		int length = i;
		for (i = 0; i < length; i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}

	}

}