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) {
		// TODO ?????????????????????????????????????????????



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

		Boolean isContinue = true;

		while(isContinue){

			int intNum = 0;
			try {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			}catch(IOException e){
				System.out.println(e);

			}catch(NumberFormatException e){
				System.out.println(e);
			}


		}

		for(int i = 0; i < list.size(); i++){

			System.out.print("Case " + (i + 1) + ": ");
			System.out.println(list.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) {
		// TODO ?????????????????????????????????????????????



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

		Boolean isContinue = true;

		while(isContinue){

			int intNum = 0;
			try {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			}catch(IOException e){
				System.out.println(e);

			}catch(NumberFormatException e){
				System.out.println(e);
			}


		}

		for(int i = 0; i < list.size(); i++){

			System.out.print("Case " + (i + 1) + ": ");
			System.out.println(list.get(i));
		}
	}
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????



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

		Boolean isContinue = true;

		while(isContinue){

			int intNum = 0;
			try {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			}catch(IOException e){
				System.out.println(e);

			}catch(NumberFormatException e){
				System.out.println(e);
			}


		}

		for(int i = 0; i < list.size(); i++){

			System.out.print("Case " + (i + 1) + ": ");
			System.out.println(list.get(i));
		}
	} main {
		// TODO ?????????????????????????????????????????????



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

		Boolean isContinue = true;

		while(isContinue){

			int intNum = 0;
			try {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			}catch(IOException e){
				System.out.println(e);

			}catch(NumberFormatException e){
				System.out.println(e);
			}


		}

		for(int i = 0; i < list.size(); i++){

			System.out.print("Case " + (i + 1) + ": ");
			System.out.println(list.get(i));
		}
	} BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in)); insBR new BufferedReader(new InputStreamReader(System.in)) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() Boolean isContinue = true; isContinue true while(isContinue){

			int intNum = 0;
			try {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			}catch(IOException e){
				System.out.println(e);

			}catch(NumberFormatException e){
				System.out.println(e);
			}


		} isContinue {

			int intNum = 0;
			try {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			}catch(IOException e){
				System.out.println(e);

			}catch(NumberFormatException e){
				System.out.println(e);
			}


		} int intNum = 0; intNum 0 try {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			}catch(IOException e){
				System.out.println(e);

			}catch(NumberFormatException e){
				System.out.println(e);
			} catch(IOException e){
				System.out.println(e);

			} IOException e {
				System.out.println(e);

			} System.out.println(e) System.out.println System.out System System.out e catch(NumberFormatException e){
				System.out.println(e);
			} NumberFormatException e {
				System.out.println(e);
			} System.out.println(e) System.out.println System.out System System.out e {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			} String strIn = insBR.readLine(); strIn insBR.readLine() insBR.readLine insBR intNum = Integer.parseInt(strIn) intNum Integer.parseInt(strIn) Integer.parseInt Integer strIn if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				} intNum != 0 intNum 0 {
					list.add(intNum);

				} list.add(intNum) list.add list intNum {
					isContinue = false;
				} isContinue = false isContinue false for(int i = 0; i < list.size(); i++){

			System.out.print("Case " + (i + 1) + ": ");
			System.out.println(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.print("Case " + (i + 1) + ": ");
			System.out.println(list.get(i));
		} {

			System.out.print("Case " + (i + 1) + ": ");
			System.out.println(list.get(i));
		} System.out.print("Case " + (i + 1) + ": ") System.out.print System.out System System.out "Case " + (i + 1) + ": " "Case " + (i + 1) + ": " "Case " (i + 1) i 1 ": " System.out.println(list.get(i)) System.out.println System.out System System.out list.get(i) list.get list i String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????



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

		Boolean isContinue = true;

		while(isContinue){

			int intNum = 0;
			try {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			}catch(IOException e){
				System.out.println(e);

			}catch(NumberFormatException e){
				System.out.println(e);
			}


		}

		for(int i = 0; i < list.size(); i++){

			System.out.print("Case " + (i + 1) + ": ");
			System.out.println(list.get(i));
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????



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

		Boolean isContinue = true;

		while(isContinue){

			int intNum = 0;
			try {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			}catch(IOException e){
				System.out.println(e);

			}catch(NumberFormatException e){
				System.out.println(e);
			}


		}

		for(int i = 0; i < list.size(); i++){

			System.out.print("Case " + (i + 1) + ": ");
			System.out.println(list.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) {
		// TODO ?????????????????????????????????????????????



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

		Boolean isContinue = true;

		while(isContinue){

			int intNum = 0;
			try {

				String strIn = insBR.readLine();
				intNum = Integer.parseInt(strIn);

				if(intNum != 0 ){
					list.add(intNum);

				}else{
					isContinue = false;
				}

			}catch(IOException e){
				System.out.println(e);

			}catch(NumberFormatException e){
				System.out.println(e);
			}


		}

		for(int i = 0; i < list.size(); i++){

			System.out.print("Case " + (i + 1) + ": ");
			System.out.println(list.get(i));
		}
	}
}