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

class Main{

	public static void main(String[] args) throws Exception{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();

		while(true){

			int num = Integer.parseInt(br.readLine());

			if(num != 0){
				list.add(num);
			}else{
				break;
			}

		}

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

	}
} import java.io.BufferedReader; BufferedReader 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 Exception{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();

		while(true){

			int num = Integer.parseInt(br.readLine());

			if(num != 0){
				list.add(num);
			}else{
				break;
			}

		}

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

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();

		while(true){

			int num = Integer.parseInt(br.readLine());

			if(num != 0){
				list.add(num);
			}else{
				break;
			}

		}

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

	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();

		while(true){

			int num = Integer.parseInt(br.readLine());

			if(num != 0){
				list.add(num);
			}else{
				break;
			}

		}

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

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() while(true){

			int num = Integer.parseInt(br.readLine());

			if(num != 0){
				list.add(num);
			}else{
				break;
			}

		} true {

			int num = Integer.parseInt(br.readLine());

			if(num != 0){
				list.add(num);
			}else{
				break;
			}

		} int num = Integer.parseInt(br.readLine()); num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(num != 0){
				list.add(num);
			}else{
				break;
			} num != 0 num 0 {
				list.add(num);
			} list.add(num) list.add list num {
				break;
			} break; for(int i = 0; i < list.size(); i++){
			System.out.println("Case " + (i + 1) + ": " + list.get(i));
		} int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
			System.out.println("Case " + (i + 1) + ": " + list.get(i));
		} {
			System.out.println("Case " + (i + 1) + ": " + list.get(i));
		} System.out.println("Case " + (i + 1) + ": " + list.get(i)) System.out.println System.out System System.out "Case " + (i + 1) + ": " + list.get(i) ": " "Case " + (i + 1) + ": " + list.get(i) "Case " (i + 1) i 1 ": " list.get(i) list.get list i String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

class Main{

	public static void main(String[] args) throws Exception{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();

		while(true){

			int num = Integer.parseInt(br.readLine());

			if(num != 0){
				list.add(num);
			}else{
				break;
			}

		}

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

	}
}