import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		ArrayList<String> lines = new ArrayList<String>();
		
		String string = "";
		int cn =0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if(string.equals("0")){
				break;
			}
		}
		
		int[] in = new int[cn];
		
		for (int i=0; i < cn;i++) {
			in[i] = Integer.parseInt(lines.get(i));
		}
		
		int j = 0;
		
		for (int number = 1;; number++) {
			if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			}
		}
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		ArrayList<String> lines = new ArrayList<String>();
		
		String string = "";
		int cn =0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if(string.equals("0")){
				break;
			}
		}
		
		int[] in = new int[cn];
		
		for (int i=0; i < cn;i++) {
			in[i] = Integer.parseInt(lines.get(i));
		}
		
		int j = 0;
		
		for (int number = 1;; number++) {
			if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			}
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		ArrayList<String> lines = new ArrayList<String>();
		
		String string = "";
		int cn =0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if(string.equals("0")){
				break;
			}
		}
		
		int[] in = new int[cn];
		
		for (int i=0; i < cn;i++) {
			in[i] = Integer.parseInt(lines.get(i));
		}
		
		int j = 0;
		
		for (int number = 1;; number++) {
			if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		
		ArrayList<String> lines = new ArrayList<String>();
		
		String string = "";
		int cn =0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if(string.equals("0")){
				break;
			}
		}
		
		int[] in = new int[cn];
		
		for (int i=0; i < cn;i++) {
			in[i] = Integer.parseInt(lines.get(i));
		}
		
		int j = 0;
		
		for (int number = 1;; number++) {
			if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<String> lines = new ArrayList<String>(); lines new ArrayList<String>() String string = ""; string "" int cn =0; cn 0 while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if(string.equals("0")){
				break;
			}
		} true {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if(string.equals("0")){
				break;
			}
		} string = sc.nextLine() string sc.nextLine() sc.nextLine sc lines.add(string) lines.add lines string cn++ cn if(string.equals("0")){
				break;
			} string.equals("0") string.equals string "0" {
				break;
			} break; int[] in = new int[cn]; in new int[cn] cn for (int i=0; i < cn;i++) {
			in[i] = Integer.parseInt(lines.get(i));
		} int i=0; int i=0; i 0 i < cn i cn i++ i++ i {
			in[i] = Integer.parseInt(lines.get(i));
		} {
			in[i] = Integer.parseInt(lines.get(i));
		} in[i] = Integer.parseInt(lines.get(i)) in[i] in i Integer.parseInt(lines.get(i)) Integer.parseInt Integer lines.get(i) lines.get lines i int j = 0; j 0 for (int number = 1;; number++) {
			if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			}
		} int number = 1; int number = 1; number 1 number++ number++ number {
			if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			}
		} {
			if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			}
		} if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			} in[j] == 0 in[j] in j 0 {
				break;
			} break; {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			} System.out.print("Case ") System.out.print System.out System System.out "Case " System.out.print(number) System.out.print System.out System System.out number System.out.print(": ") System.out.print System.out System System.out ": " System.out.println(in[j]) System.out.println System.out System System.out in[j] in j j++ j String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		ArrayList<String> lines = new ArrayList<String>();
		
		String string = "";
		int cn =0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if(string.equals("0")){
				break;
			}
		}
		
		int[] in = new int[cn];
		
		for (int i=0; i < cn;i++) {
			in[i] = Integer.parseInt(lines.get(i));
		}
		
		int j = 0;
		
		for (int number = 1;; number++) {
			if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		ArrayList<String> lines = new ArrayList<String>();
		
		String string = "";
		int cn =0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if(string.equals("0")){
				break;
			}
		}
		
		int[] in = new int[cn];
		
		for (int i=0; i < cn;i++) {
			in[i] = Integer.parseInt(lines.get(i));
		}
		
		int j = 0;
		
		for (int number = 1;; number++) {
			if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			}
		}
	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		ArrayList<String> lines = new ArrayList<String>();
		
		String string = "";
		int cn =0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if(string.equals("0")){
				break;
			}
		}
		
		int[] in = new int[cn];
		
		for (int i=0; i < cn;i++) {
			in[i] = Integer.parseInt(lines.get(i));
		}
		
		int j = 0;
		
		for (int number = 1;; number++) {
			if (in[j] == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(in[j]);
				j++;
			}
		}
	}

}