/*
 * Aizu Online Judge
 */

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

/**
 *
 * @author yoshkur
 */
public class Main {

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			Processing processing = new Processing(inputData);
			System.out.println(processing.getResult());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	}
}

class InputData {

	private List<Integer> numberList = new ArrayList<>();

	public InputData(BufferedReader br) throws IOException {
		String line;
		while((line = br.readLine()) != null) {
			this.numberList.add(Integer.valueOf(line.trim()));
		}
	}

	public List<Integer> getNumberList() {
		return numberList;
	}

	public void setNumberList(List<Integer> numberList) {
		this.numberList = numberList;
	}

}

class Processing {
	private static final String RETCODE = System.getProperty("line.separator");

	private InputData inputData;

	public Processing(InputData inputData) {
		this.inputData = inputData;
	}

	public String getResult() {
		String result = null;
		StringBuilder sb = new StringBuilder();
		for (int i = 0;
				i < this.inputData.getNumberList().size() 
				&& this.inputData.getNumberList().get(i) != 0;
				i++) {
			sb.append("Case ");
			sb.append(i + 1);
			sb.append(": ");
			sb.append(this.inputData.getNumberList().get(i));
			sb.append(RETCODE);
		}
		result = sb.toString().trim();
		return result;
	}
} 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 import java.util.Collections; Collections java.util import java.util.List; List java.util public class Main {

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			Processing processing = new Processing(inputData);
			System.out.println(processing.getResult());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	}
} Main /**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			Processing processing = new Processing(inputData);
			System.out.println(processing.getResult());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	} main {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			Processing processing = new Processing(inputData);
			System.out.println(processing.getResult());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	} try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			Processing processing = new Processing(inputData);
			System.out.println(processing.getResult());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		} IOException | NumberFormatException e {
			System.err.println(e.getLocalizedMessage());
		} System.err.println(e.getLocalizedMessage()) System.err.println System.err System System.err e.getLocalizedMessage() e.getLocalizedMessage e {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			Processing processing = new Processing(inputData);
			System.out.println(processing.getResult());

		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) InputData inputData = new InputData(br); inputData new InputData(br) Processing processing = new Processing(inputData); processing new Processing(inputData) System.out.println(processing.getResult()) System.out.println System.out System System.out processing.getResult() processing.getResult processing String[] args args class InputData {

	private List<Integer> numberList = new ArrayList<>();

	public InputData(BufferedReader br) throws IOException {
		String line;
		while((line = br.readLine()) != null) {
			this.numberList.add(Integer.valueOf(line.trim()));
		}
	}

	public List<Integer> getNumberList() {
		return numberList;
	}

	public void setNumberList(List<Integer> numberList) {
		this.numberList = numberList;
	}

} InputData private List<Integer> numberList = new ArrayList<>(); numberList new ArrayList<>() public InputData(BufferedReader br) throws IOException {
		String line;
		while((line = br.readLine()) != null) {
			this.numberList.add(Integer.valueOf(line.trim()));
		}
	} InputData {
		String line;
		while((line = br.readLine()) != null) {
			this.numberList.add(Integer.valueOf(line.trim()));
		}
	} String line; line while((line = br.readLine()) != null) {
			this.numberList.add(Integer.valueOf(line.trim()));
		} (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
			this.numberList.add(Integer.valueOf(line.trim()));
		} this.numberList.add(Integer.valueOf(line.trim())) this.numberList.add this.numberList this this.numberList Integer.valueOf(line.trim()) Integer.valueOf Integer line.trim() line.trim line BufferedReader br br public List<Integer> getNumberList() {
		return numberList;
	} getNumberList {
		return numberList;
	} return numberList; numberList public void setNumberList(List<Integer> numberList) {
		this.numberList = numberList;
	} setNumberList {
		this.numberList = numberList;
	} this.numberList = numberList this.numberList this this.numberList numberList List<Integer> numberList numberList class Processing {
	private static final String RETCODE = System.getProperty("line.separator");

	private InputData inputData;

	public Processing(InputData inputData) {
		this.inputData = inputData;
	}

	public String getResult() {
		String result = null;
		StringBuilder sb = new StringBuilder();
		for (int i = 0;
				i < this.inputData.getNumberList().size() 
				&& this.inputData.getNumberList().get(i) != 0;
				i++) {
			sb.append("Case ");
			sb.append(i + 1);
			sb.append(": ");
			sb.append(this.inputData.getNumberList().get(i));
			sb.append(RETCODE);
		}
		result = sb.toString().trim();
		return result;
	}
} Processing private static final String RETCODE = System.getProperty("line.separator"); RETCODE System.getProperty("line.separator") System.getProperty System "line.separator" private InputData inputData; inputData public Processing(InputData inputData) {
		this.inputData = inputData;
	} Processing {
		this.inputData = inputData;
	} this.inputData = inputData this.inputData this this.inputData inputData InputData inputData inputData public String getResult() {
		String result = null;
		StringBuilder sb = new StringBuilder();
		for (int i = 0;
				i < this.inputData.getNumberList().size() 
				&& this.inputData.getNumberList().get(i) != 0;
				i++) {
			sb.append("Case ");
			sb.append(i + 1);
			sb.append(": ");
			sb.append(this.inputData.getNumberList().get(i));
			sb.append(RETCODE);
		}
		result = sb.toString().trim();
		return result;
	} getResult {
		String result = null;
		StringBuilder sb = new StringBuilder();
		for (int i = 0;
				i < this.inputData.getNumberList().size() 
				&& this.inputData.getNumberList().get(i) != 0;
				i++) {
			sb.append("Case ");
			sb.append(i + 1);
			sb.append(": ");
			sb.append(this.inputData.getNumberList().get(i));
			sb.append(RETCODE);
		}
		result = sb.toString().trim();
		return result;
	} String result = null; result null StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = 0;
				i < this.inputData.getNumberList().size() 
				&& this.inputData.getNumberList().get(i) != 0;
				i++) {
			sb.append("Case ");
			sb.append(i + 1);
			sb.append(": ");
			sb.append(this.inputData.getNumberList().get(i));
			sb.append(RETCODE);
		} int i = 0; int i = 0; i 0 i < this.inputData.getNumberList().size() 
				&& this.inputData.getNumberList().get(i) != 0 i < this.inputData.getNumberList().size() i this.inputData.getNumberList().size() this.inputData.getNumberList().size this.inputData.getNumberList() this.inputData.getNumberList this.inputData this this.inputData this.inputData.getNumberList().get(i) != 0 this.inputData.getNumberList().get(i) this.inputData.getNumberList().get this.inputData.getNumberList() this.inputData.getNumberList this.inputData this this.inputData i 0 i++ i++ i {
			sb.append("Case ");
			sb.append(i + 1);
			sb.append(": ");
			sb.append(this.inputData.getNumberList().get(i));
			sb.append(RETCODE);
		} {
			sb.append("Case ");
			sb.append(i + 1);
			sb.append(": ");
			sb.append(this.inputData.getNumberList().get(i));
			sb.append(RETCODE);
		} sb.append("Case ") sb.append sb "Case " sb.append(i + 1) sb.append sb i + 1 i 1 sb.append(": ") sb.append sb ": " sb.append(this.inputData.getNumberList().get(i)) sb.append sb this.inputData.getNumberList().get(i) this.inputData.getNumberList().get this.inputData.getNumberList() this.inputData.getNumberList this.inputData this this.inputData i sb.append(RETCODE) sb.append sb RETCODE result = sb.toString().trim() result sb.toString().trim() sb.toString().trim sb.toString() sb.toString sb return result; result public class Main {

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			Processing processing = new Processing(inputData);
			System.out.println(processing.getResult());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	}
} public class Main {

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			Processing processing = new Processing(inputData);
			System.out.println(processing.getResult());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	}
} Main
/*
 * Aizu Online Judge
 */

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

/**
 *
 * @author yoshkur
 */
public class Main {

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			InputData inputData = new InputData(br);
			Processing processing = new Processing(inputData);
			System.out.println(processing.getResult());

		} catch (IOException | NumberFormatException e) {
			System.err.println(e.getLocalizedMessage());
		}
	}
}

class InputData {

	private List<Integer> numberList = new ArrayList<>();

	public InputData(BufferedReader br) throws IOException {
		String line;
		while((line = br.readLine()) != null) {
			this.numberList.add(Integer.valueOf(line.trim()));
		}
	}

	public List<Integer> getNumberList() {
		return numberList;
	}

	public void setNumberList(List<Integer> numberList) {
		this.numberList = numberList;
	}

}

class Processing {
	private static final String RETCODE = System.getProperty("line.separator");

	private InputData inputData;

	public Processing(InputData inputData) {
		this.inputData = inputData;
	}

	public String getResult() {
		String result = null;
		StringBuilder sb = new StringBuilder();
		for (int i = 0;
				i < this.inputData.getNumberList().size() 
				&& this.inputData.getNumberList().get(i) != 0;
				i++) {
			sb.append("Case ");
			sb.append(i + 1);
			sb.append(": ");
			sb.append(this.inputData.getNumberList().get(i));
			sb.append(RETCODE);
		}
		result = sb.toString().trim();
		return result;
	}
}