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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int cnt = 1;

		for(;;) {
			String num = br.readLine();
			if (num.equals("0")) {
				break;
			}
			sb.append("Case ").append(cnt++).append(": ").append(num).append("\n");
		}
		System.out.print(sb);
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int cnt = 1;

		for(;;) {
			String num = br.readLine();
			if (num.equals("0")) {
				break;
			}
			sb.append("Case ").append(cnt++).append(": ").append(num).append("\n");
		}
		System.out.print(sb);
	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int cnt = 1;

		for(;;) {
			String num = br.readLine();
			if (num.equals("0")) {
				break;
			}
			sb.append("Case ").append(cnt++).append(": ").append(num).append("\n");
		}
		System.out.print(sb);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int cnt = 1;

		for(;;) {
			String num = br.readLine();
			if (num.equals("0")) {
				break;
			}
			sb.append("Case ").append(cnt++).append(": ").append(num).append("\n");
		}
		System.out.print(sb);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int cnt = 1; cnt 1 for(;;) {
			String num = br.readLine();
			if (num.equals("0")) {
				break;
			}
			sb.append("Case ").append(cnt++).append(": ").append(num).append("\n");
		} ; {
			String num = br.readLine();
			if (num.equals("0")) {
				break;
			}
			sb.append("Case ").append(cnt++).append(": ").append(num).append("\n");
		} {
			String num = br.readLine();
			if (num.equals("0")) {
				break;
			}
			sb.append("Case ").append(cnt++).append(": ").append(num).append("\n");
		} String num = br.readLine(); num br.readLine() br.readLine br if (num.equals("0")) {
				break;
			} num.equals("0") num.equals num "0" {
				break;
			} break; sb.append("Case ").append(cnt++).append(": ").append(num).append("\n") sb.append("Case ").append(cnt++).append(": ").append(num).append sb.append("Case ").append(cnt++).append(": ").append(num) sb.append("Case ").append(cnt++).append(": ").append sb.append("Case ").append(cnt++).append(": ") sb.append("Case ").append(cnt++).append sb.append("Case ").append(cnt++) sb.append("Case ").append sb.append("Case ") sb.append sb "Case " cnt++ cnt ": " num "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int cnt = 1;

		for(;;) {
			String num = br.readLine();
			if (num.equals("0")) {
				break;
			}
			sb.append("Case ").append(cnt++).append(": ").append(num).append("\n");
		}
		System.out.print(sb);
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int cnt = 1;

		for(;;) {
			String num = br.readLine();
			if (num.equals("0")) {
				break;
			}
			sb.append("Case ").append(cnt++).append(": ").append(num).append("\n");
		}
		System.out.print(sb);
	}

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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int cnt = 1;

		for(;;) {
			String num = br.readLine();
			if (num.equals("0")) {
				break;
			}
			sb.append("Case ").append(cnt++).append(": ").append(num).append("\n");
		}
		System.out.print(sb);
	}

}