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

public class Main{

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		while (true) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		int i = 1;
		for (String line : list) {
			int x = Integer.parseInt(line);
			System.out.println("Case " + i + ": " + x);
			i++;
		}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		while (true) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		int i = 1;
		for (String line : list) {
			int x = Integer.parseInt(line);
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		while (true) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		int i = 1;
		for (String line : list) {
			int x = Integer.parseInt(line);
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	} main {

		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		while (true) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		int i = 1;
		for (String line : list) {
			int x = Integer.parseInt(line);
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<String> list = new ArrayList<String>(); list new ArrayList<String>() while (true) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		} true {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		} String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc if (line.equals("0")) {
				break;
			} line.equals("0") line.equals line "0" {
				break;
			} break; list.add(line) list.add list line int i = 1; i 1 for (String line : list) {
			int x = Integer.parseInt(line);
			System.out.println("Case " + i + ": " + x);
			i++;
		} String line list {
			int x = Integer.parseInt(line);
			System.out.println("Case " + i + ": " + x);
			i++;
		} {
			int x = Integer.parseInt(line);
			System.out.println("Case " + i + ": " + x);
			i++;
		} int x = Integer.parseInt(line); x Integer.parseInt(line) Integer.parseInt Integer line System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x i++ i String[] args args public class Main{

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		while (true) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		int i = 1;
		for (String line : list) {
			int x = Integer.parseInt(line);
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	}
} public class Main{

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		while (true) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		int i = 1;
		for (String line : list) {
			int x = Integer.parseInt(line);
			System.out.println("Case " + i + ": " + x);
			i++;
		}

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

public class Main{

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		while (true) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		int i = 1;
		for (String line : list) {
			int x = Integer.parseInt(line);
			System.out.println("Case " + i + ": " + x);
			i++;
		}

	}
}