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

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		ArrayList<Integer> list = new ArrayList<Integer>();
		int number;

		while (true) {

			number = input();

			if (number != 0) {

				list.add(number);

			} else if (number == 0) {

				break;

			}
		}

		for (int i = 0; i < list.size(); i++) {

			System.out.println("Case " + (i + 1) + ": " + list.get(i));

		}

		close();

	}

	public static int input() {

		return Integer.parseInt(scanner.next());

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

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

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		ArrayList<Integer> list = new ArrayList<Integer>();
		int number;

		while (true) {

			number = input();

			if (number != 0) {

				list.add(number);

			} else if (number == 0) {

				break;

			}
		}

		for (int i = 0; i < list.size(); i++) {

			System.out.println("Case " + (i + 1) + ": " + list.get(i));

		}

		close();

	}

	public static int input() {

		return Integer.parseInt(scanner.next());

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main public static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[] args) {

		ArrayList<Integer> list = new ArrayList<Integer>();
		int number;

		while (true) {

			number = input();

			if (number != 0) {

				list.add(number);

			} else if (number == 0) {

				break;

			}
		}

		for (int i = 0; i < list.size(); i++) {

			System.out.println("Case " + (i + 1) + ": " + list.get(i));

		}

		close();

	} main {

		ArrayList<Integer> list = new ArrayList<Integer>();
		int number;

		while (true) {

			number = input();

			if (number != 0) {

				list.add(number);

			} else if (number == 0) {

				break;

			}
		}

		for (int i = 0; i < list.size(); i++) {

			System.out.println("Case " + (i + 1) + ": " + list.get(i));

		}

		close();

	} ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() int number; number while (true) {

			number = input();

			if (number != 0) {

				list.add(number);

			} else if (number == 0) {

				break;

			}
		} true {

			number = input();

			if (number != 0) {

				list.add(number);

			} else if (number == 0) {

				break;

			}
		} number = input() number input() input if (number != 0) {

				list.add(number);

			} else if (number == 0) {

				break;

			} number != 0 number 0 {

				list.add(number);

			} list.add(number) list.add list number if (number == 0) {

				break;

			} number == 0 number 0 {

				break;

			} break; for (int i = 0; i < list.size(); i++) {

			System.out.println("Case " + (i + 1) + ": " + list.get(i));

		} int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {

			System.out.println("Case " + (i + 1) + ": " + list.get(i));

		} {

			System.out.println("Case " + (i + 1) + ": " + list.get(i));

		} System.out.println("Case " + (i + 1) + ": " + list.get(i)) System.out.println System.out System System.out "Case " + (i + 1) + ": " + list.get(i) ": " "Case " + (i + 1) + ": " + list.get(i) "Case " (i + 1) i 1 ": " list.get(i) list.get list i close() close String[] args args public static int input() {

		return Integer.parseInt(scanner.next());

	} input {

		return Integer.parseInt(scanner.next());

	} return Integer.parseInt(scanner.next()); Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	} close {

		if (scanner != null) {

			scanner.close();

		}
	} if (scanner != null) {

			scanner.close();

		} scanner != null scanner null {

			scanner.close();

		} scanner.close() scanner.close scanner public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		ArrayList<Integer> list = new ArrayList<Integer>();
		int number;

		while (true) {

			number = input();

			if (number != 0) {

				list.add(number);

			} else if (number == 0) {

				break;

			}
		}

		for (int i = 0; i < list.size(); i++) {

			System.out.println("Case " + (i + 1) + ": " + list.get(i));

		}

		close();

	}

	public static int input() {

		return Integer.parseInt(scanner.next());

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		ArrayList<Integer> list = new ArrayList<Integer>();
		int number;

		while (true) {

			number = input();

			if (number != 0) {

				list.add(number);

			} else if (number == 0) {

				break;

			}
		}

		for (int i = 0; i < list.size(); i++) {

			System.out.println("Case " + (i + 1) + ": " + list.get(i));

		}

		close();

	}

	public static int input() {

		return Integer.parseInt(scanner.next());

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

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

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		ArrayList<Integer> list = new ArrayList<Integer>();
		int number;

		while (true) {

			number = input();

			if (number != 0) {

				list.add(number);

			} else if (number == 0) {

				break;

			}
		}

		for (int i = 0; i < list.size(); i++) {

			System.out.println("Case " + (i + 1) + ": " + list.get(i));

		}

		close();

	}

	public static int input() {

		return Integer.parseInt(scanner.next());

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
}