

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int i = 1;
		while (true) {
			int num1 = scanner.nextInt();
			if (num1 == 0)
				break;
			else {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int i = 1;
		while (true) {
			int num1 = scanner.nextInt();
			if (num1 == 0)
				break;
			else {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int i = 1;
		while (true) {
			int num1 = scanner.nextInt();
			if (num1 == 0)
				break;
			else {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			}
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int i = 1;
		while (true) {
			int num1 = scanner.nextInt();
			if (num1 == 0)
				break;
			else {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			}
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int i = 1; i 1 while (true) {
			int num1 = scanner.nextInt();
			if (num1 == 0)
				break;
			else {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			}
		} true {
			int num1 = scanner.nextInt();
			if (num1 == 0)
				break;
			else {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			}
		} int num1 = scanner.nextInt(); num1 scanner.nextInt() scanner.nextInt scanner if (num1 == 0)
				break;
			else {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			} num1 == 0 num1 0 break; {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			} System.out.println(String.format("Case %s: %s", i, num1)) System.out.println System.out System System.out String.format("Case %s: %s", i, num1) String.format String "Case %s: %s" i num1 i++ i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int i = 1;
		while (true) {
			int num1 = scanner.nextInt();
			if (num1 == 0)
				break;
			else {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int i = 1;
		while (true) {
			int num1 = scanner.nextInt();
			if (num1 == 0)
				break;
			else {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			}
		}
	}
} Main


import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int i = 1;
		while (true) {
			int num1 = scanner.nextInt();
			if (num1 == 0)
				break;
			else {
				System.out.println(String.format("Case %s: %s", i, num1));
				i++;
			}
		}
	}
}