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

public class Main{

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		for (int i = 0; i < 10001; i++) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		for (int j = 1; j < list.size()+1; j++) {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		}
	}

} 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) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		for (int i = 0; i < 10001; i++) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		for (int j = 1; j < list.size()+1; j++) {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		}
	}

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

		List<String> list = new ArrayList<String>();
		for (int i = 0; i < 10001; i++) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		for (int j = 1; j < list.size()+1; j++) {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		}
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		for (int i = 0; i < 10001; i++) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		for (int j = 1; j < list.size()+1; j++) {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<String> list = new ArrayList<String>(); list new ArrayList<String>() for (int i = 0; i < 10001; i++) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		} int i = 0; int i = 0; i 0 i < 10001 i 10001 i++ i++ i {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		} {
			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 for (int j = 1; j < list.size()+1; j++) {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		} int j = 1; int j = 1; j 1 j < list.size()+1 j list.size()+1 list.size() list.size list 1 j++ j++ j {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		} {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		} String string = list.get(j - 1); string list.get(j - 1) list.get list j - 1 j 1 System.out.println("Case " + j + ": " + string) System.out.println System.out System System.out "Case " + j + ": " + string ": " "Case " + j + ": " + string "Case " j ": " string String[] args args public class Main{

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		for (int i = 0; i < 10001; i++) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		for (int j = 1; j < list.size()+1; j++) {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		}
	}

} public class Main{

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		for (int i = 0; i < 10001; i++) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		for (int j = 1; j < list.size()+1; j++) {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		}
	}

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

public class Main{

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		List<String> list = new ArrayList<String>();
		for (int i = 0; i < 10001; i++) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		for (int j = 1; j < list.size()+1; j++) {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		}
	}

}