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

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = "";
		ArrayList<String> numArray = new ArrayList<String>();
		while(true) {
			strNum = br.readLine();
			if (strNum.equals("0")) {
				break;
			}
			numArray.add(strNum);
		}
		for (int i = 0; i < numArray.size(); i++) {
			System.out.println("Case " + (i+1) +": " + numArray.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 class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = "";
		ArrayList<String> numArray = new ArrayList<String>();
		while(true) {
			strNum = br.readLine();
			if (strNum.equals("0")) {
				break;
			}
			numArray.add(strNum);
		}
		for (int i = 0; i < numArray.size(); i++) {
			System.out.println("Case " + (i+1) +": " + numArray.get(i));
		}
	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = "";
		ArrayList<String> numArray = new ArrayList<String>();
		while(true) {
			strNum = br.readLine();
			if (strNum.equals("0")) {
				break;
			}
			numArray.add(strNum);
		}
		for (int i = 0; i < numArray.size(); i++) {
			System.out.println("Case " + (i+1) +": " + numArray.get(i));
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = "";
		ArrayList<String> numArray = new ArrayList<String>();
		while(true) {
			strNum = br.readLine();
			if (strNum.equals("0")) {
				break;
			}
			numArray.add(strNum);
		}
		for (int i = 0; i < numArray.size(); i++) {
			System.out.println("Case " + (i+1) +": " + numArray.get(i));
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strNum = ""; strNum "" ArrayList<String> numArray = new ArrayList<String>(); numArray new ArrayList<String>() while(true) {
			strNum = br.readLine();
			if (strNum.equals("0")) {
				break;
			}
			numArray.add(strNum);
		} true {
			strNum = br.readLine();
			if (strNum.equals("0")) {
				break;
			}
			numArray.add(strNum);
		} strNum = br.readLine() strNum br.readLine() br.readLine br if (strNum.equals("0")) {
				break;
			} strNum.equals("0") strNum.equals strNum "0" {
				break;
			} break; numArray.add(strNum) numArray.add numArray strNum for (int i = 0; i < numArray.size(); i++) {
			System.out.println("Case " + (i+1) +": " + numArray.get(i));
		} int i = 0; int i = 0; i 0 i < numArray.size() i numArray.size() numArray.size numArray i++ i++ i {
			System.out.println("Case " + (i+1) +": " + numArray.get(i));
		} {
			System.out.println("Case " + (i+1) +": " + numArray.get(i));
		} System.out.println("Case " + (i+1) +": " + numArray.get(i)) System.out.println System.out System System.out "Case " + (i+1) +": " + numArray.get(i) ": " "Case " + (i+1) +": " + numArray.get(i) "Case " (i+1) i 1 ": " numArray.get(i) numArray.get numArray i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = "";
		ArrayList<String> numArray = new ArrayList<String>();
		while(true) {
			strNum = br.readLine();
			if (strNum.equals("0")) {
				break;
			}
			numArray.add(strNum);
		}
		for (int i = 0; i < numArray.size(); i++) {
			System.out.println("Case " + (i+1) +": " + numArray.get(i));
		}
	}

}