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

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {

		ArrayList<Integer> arrPost = new ArrayList<Integer>();
		BufferedReader buffReader = new BufferedReader(new InputStreamReader(System.in));
		while(true) {
			int n = Integer.parseInt(buffReader.readLine());

			if(n == 0) 	break;
			else 		arrPost.add(n);
		}

		for(int i = 0; i < arrPost.size(); i++) System.out.println("Case " + (i + 1) + ": " + arrPost.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 public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {

		ArrayList<Integer> arrPost = new ArrayList<Integer>();
		BufferedReader buffReader = new BufferedReader(new InputStreamReader(System.in));
		while(true) {
			int n = Integer.parseInt(buffReader.readLine());

			if(n == 0) 	break;
			else 		arrPost.add(n);
		}

		for(int i = 0; i < arrPost.size(); i++) System.out.println("Case " + (i + 1) + ": " + arrPost.get(i));
	}
} Main public static void main(String[] args) throws NumberFormatException, IOException {

		ArrayList<Integer> arrPost = new ArrayList<Integer>();
		BufferedReader buffReader = new BufferedReader(new InputStreamReader(System.in));
		while(true) {
			int n = Integer.parseInt(buffReader.readLine());

			if(n == 0) 	break;
			else 		arrPost.add(n);
		}

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

		ArrayList<Integer> arrPost = new ArrayList<Integer>();
		BufferedReader buffReader = new BufferedReader(new InputStreamReader(System.in));
		while(true) {
			int n = Integer.parseInt(buffReader.readLine());

			if(n == 0) 	break;
			else 		arrPost.add(n);
		}

		for(int i = 0; i < arrPost.size(); i++) System.out.println("Case " + (i + 1) + ": " + arrPost.get(i));
	} ArrayList<Integer> arrPost = new ArrayList<Integer>(); arrPost new ArrayList<Integer>() BufferedReader buffReader = new BufferedReader(new InputStreamReader(System.in)); buffReader new BufferedReader(new InputStreamReader(System.in)) while(true) {
			int n = Integer.parseInt(buffReader.readLine());

			if(n == 0) 	break;
			else 		arrPost.add(n);
		} true {
			int n = Integer.parseInt(buffReader.readLine());

			if(n == 0) 	break;
			else 		arrPost.add(n);
		} int n = Integer.parseInt(buffReader.readLine()); n Integer.parseInt(buffReader.readLine()) Integer.parseInt Integer buffReader.readLine() buffReader.readLine buffReader if(n == 0) 	break;
			else 		arrPost.add(n); n == 0 n 0 break; arrPost.add(n) arrPost.add arrPost n for(int i = 0; i < arrPost.size(); i++) System.out.println("Case " + (i + 1) + ": " + arrPost.get(i)); int i = 0; int i = 0; i 0 i < arrPost.size() i arrPost.size() arrPost.size arrPost i++ i++ i System.out.println("Case " + (i + 1) + ": " + arrPost.get(i)); System.out.println("Case " + (i + 1) + ": " + arrPost.get(i)) System.out.println System.out System System.out "Case " + (i + 1) + ": " + arrPost.get(i) ": " "Case " + (i + 1) + ": " + arrPost.get(i) "Case " (i + 1) i 1 ": " arrPost.get(i) arrPost.get arrPost i String[] args args public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {

		ArrayList<Integer> arrPost = new ArrayList<Integer>();
		BufferedReader buffReader = new BufferedReader(new InputStreamReader(System.in));
		while(true) {
			int n = Integer.parseInt(buffReader.readLine());

			if(n == 0) 	break;
			else 		arrPost.add(n);
		}

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

	public static void main(String[] args) throws NumberFormatException, IOException {

		ArrayList<Integer> arrPost = new ArrayList<Integer>();
		BufferedReader buffReader = new BufferedReader(new InputStreamReader(System.in));
		while(true) {
			int n = Integer.parseInt(buffReader.readLine());

			if(n == 0) 	break;
			else 		arrPost.add(n);
		}

		for(int i = 0; i < arrPost.size(); i++) System.out.println("Case " + (i + 1) + ": " + arrPost.get(i));
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {

		ArrayList<Integer> arrPost = new ArrayList<Integer>();
		BufferedReader buffReader = new BufferedReader(new InputStreamReader(System.in));
		while(true) {
			int n = Integer.parseInt(buffReader.readLine());

			if(n == 0) 	break;
			else 		arrPost.add(n);
		}

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