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

public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int taisyo = Integer.parseInt(line);
		int counter = 1;
		boolean zero = true;

		while (zero) {
			System.out.println("Case " + counter + ": " + taisyo);
			counter++;
			line = br.readLine();
			taisyo = Integer.parseInt(line);
			if (taisyo == 0) {
				zero = false;
			}
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int taisyo = Integer.parseInt(line);
		int counter = 1;
		boolean zero = true;

		while (zero) {
			System.out.println("Case " + counter + ": " + taisyo);
			counter++;
			line = br.readLine();
			taisyo = Integer.parseInt(line);
			if (taisyo == 0) {
				zero = false;
			}
		}
	}
} Main public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int taisyo = Integer.parseInt(line);
		int counter = 1;
		boolean zero = true;

		while (zero) {
			System.out.println("Case " + counter + ": " + taisyo);
			counter++;
			line = br.readLine();
			taisyo = Integer.parseInt(line);
			if (taisyo == 0) {
				zero = false;
			}
		}
	} main {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int taisyo = Integer.parseInt(line);
		int counter = 1;
		boolean zero = true;

		while (zero) {
			System.out.println("Case " + counter + ": " + taisyo);
			counter++;
			line = br.readLine();
			taisyo = Integer.parseInt(line);
			if (taisyo == 0) {
				zero = false;
			}
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br int taisyo = Integer.parseInt(line); taisyo Integer.parseInt(line) Integer.parseInt Integer line int counter = 1; counter 1 boolean zero = true; zero true while (zero) {
			System.out.println("Case " + counter + ": " + taisyo);
			counter++;
			line = br.readLine();
			taisyo = Integer.parseInt(line);
			if (taisyo == 0) {
				zero = false;
			}
		} zero {
			System.out.println("Case " + counter + ": " + taisyo);
			counter++;
			line = br.readLine();
			taisyo = Integer.parseInt(line);
			if (taisyo == 0) {
				zero = false;
			}
		} System.out.println("Case " + counter + ": " + taisyo) System.out.println System.out System System.out "Case " + counter + ": " + taisyo ": " "Case " + counter + ": " + taisyo "Case " counter ": " taisyo counter++ counter line = br.readLine() line br.readLine() br.readLine br taisyo = Integer.parseInt(line) taisyo Integer.parseInt(line) Integer.parseInt Integer line if (taisyo == 0) {
				zero = false;
			} taisyo == 0 taisyo 0 {
				zero = false;
			} zero = false zero false String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int taisyo = Integer.parseInt(line);
		int counter = 1;
		boolean zero = true;

		while (zero) {
			System.out.println("Case " + counter + ": " + taisyo);
			counter++;
			line = br.readLine();
			taisyo = Integer.parseInt(line);
			if (taisyo == 0) {
				zero = false;
			}
		}
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int taisyo = Integer.parseInt(line);
		int counter = 1;
		boolean zero = true;

		while (zero) {
			System.out.println("Case " + counter + ": " + taisyo);
			counter++;
			line = br.readLine();
			taisyo = Integer.parseInt(line);
			if (taisyo == 0) {
				zero = false;
			}
		}
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int taisyo = Integer.parseInt(line);
		int counter = 1;
		boolean zero = true;

		while (zero) {
			System.out.println("Case " + counter + ": " + taisyo);
			counter++;
			line = br.readLine();
			taisyo = Integer.parseInt(line);
			if (taisyo == 0) {
				zero = false;
			}
		}
	}
}