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

class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		int i = 1;
		boolean b = true;
		while (b) {
			String str = br.readLine();
			if (str.equals("0")) {
				b = false;
			} else {
				System.out.println("Case " + i + ": " + str);
				i++;
			}
		}
	}
} import java.io.InputStreamReader; InputStreamReader java.io import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		int i = 1;
		boolean b = true;
		while (b) {
			String str = br.readLine();
			if (str.equals("0")) {
				b = false;
			} else {
				System.out.println("Case " + i + ": " + str);
				i++;
			}
		}
	}
} Main public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		int i = 1;
		boolean b = true;
		while (b) {
			String str = br.readLine();
			if (str.equals("0")) {
				b = false;
			} else {
				System.out.println("Case " + i + ": " + str);
				i++;
			}
		}
	} main {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		int i = 1;
		boolean b = true;
		while (b) {
			String str = br.readLine();
			if (str.equals("0")) {
				b = false;
			} else {
				System.out.println("Case " + i + ": " + str);
				i++;
			}
		}
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) int i = 1; i 1 boolean b = true; b true while (b) {
			String str = br.readLine();
			if (str.equals("0")) {
				b = false;
			} else {
				System.out.println("Case " + i + ": " + str);
				i++;
			}
		} b {
			String str = br.readLine();
			if (str.equals("0")) {
				b = false;
			} else {
				System.out.println("Case " + i + ": " + str);
				i++;
			}
		} String str = br.readLine(); str br.readLine() br.readLine br if (str.equals("0")) {
				b = false;
			} else {
				System.out.println("Case " + i + ": " + str);
				i++;
			} str.equals("0") str.equals str "0" {
				b = false;
			} b = false b false {
				System.out.println("Case " + i + ": " + str);
				i++;
			} System.out.println("Case " + i + ": " + str) System.out.println System.out System System.out "Case " + i + ": " + str ": " "Case " + i + ": " + str "Case " i ": " str i++ i String[] args args
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;

class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		int i = 1;
		boolean b = true;
		while (b) {
			String str = br.readLine();
			if (str.equals("0")) {
				b = false;
			} else {
				System.out.println("Case " + i + ": " + str);
				i++;
			}
		}
	}
}