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

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

		Scanner scanner = new Scanner(System.in);

		ArrayList<Integer> list = new ArrayList<Integer>();

		boolean  flg = true;

		while (flg) {
	        list.add(Integer.valueOf(scanner.nextInt()));
	        for(int i=0; i<list.size(); i++){
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        }
		}

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

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

		Scanner scanner = new Scanner(System.in);

		ArrayList<Integer> list = new ArrayList<Integer>();

		boolean  flg = true;

		while (flg) {
	        list.add(Integer.valueOf(scanner.nextInt()));
	        for(int i=0; i<list.size(); i++){
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        }
		}

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

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

		Scanner scanner = new Scanner(System.in);

		ArrayList<Integer> list = new ArrayList<Integer>();

		boolean  flg = true;

		while (flg) {
	        list.add(Integer.valueOf(scanner.nextInt()));
	        for(int i=0; i<list.size(); i++){
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        }
		}

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

	} main {

		Scanner scanner = new Scanner(System.in);

		ArrayList<Integer> list = new ArrayList<Integer>();

		boolean  flg = true;

		while (flg) {
	        list.add(Integer.valueOf(scanner.nextInt()));
	        for(int i=0; i<list.size(); i++){
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        }
		}

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

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() boolean  flg = true; flg true while (flg) {
	        list.add(Integer.valueOf(scanner.nextInt()));
	        for(int i=0; i<list.size(); i++){
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        }
		} flg {
	        list.add(Integer.valueOf(scanner.nextInt()));
	        for(int i=0; i<list.size(); i++){
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        }
		} list.add(Integer.valueOf(scanner.nextInt())) list.add list Integer.valueOf(scanner.nextInt()) Integer.valueOf Integer scanner.nextInt() scanner.nextInt scanner for(int i=0; i<list.size(); i++){
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        } int i=0; int i=0; i 0 i<list.size() i list.size() list.size list i++ i++ i {
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        } {
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        } if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	} list.get(i) == 0 list.get(i) list.get list i 0 {
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	} list.remove(i) list.remove list i flg = false flg false 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 public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		ArrayList<Integer> list = new ArrayList<Integer>();

		boolean  flg = true;

		while (flg) {
	        list.add(Integer.valueOf(scanner.nextInt()));
	        for(int i=0; i<list.size(); i++){
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        }
		}

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

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

		Scanner scanner = new Scanner(System.in);

		ArrayList<Integer> list = new ArrayList<Integer>();

		boolean  flg = true;

		while (flg) {
	        list.add(Integer.valueOf(scanner.nextInt()));
	        for(int i=0; i<list.size(); i++){
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        }
		}

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

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

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

		Scanner scanner = new Scanner(System.in);

		ArrayList<Integer> list = new ArrayList<Integer>();

		boolean  flg = true;

		while (flg) {
	        list.add(Integer.valueOf(scanner.nextInt()));
	        for(int i=0; i<list.size(); i++){
	        	if(list.get(i) == 0){
	        		list.remove(i);
	        		flg = false;
	        		break;
	        	}
	        }
		}

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

	}
}