import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		List<Integer> list = new ArrayList<Integer>();
		for(;;){
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		}

		for(int i = 0; i < list.size(); i++){
			System.out.printf("Case %d: %d\n", i + 1, list.get(i));
		}
	}
} import java.util.*; util.* java public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		List<Integer> list = new ArrayList<Integer>();
		for(;;){
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		}

		for(int i = 0; i < list.size(); i++){
			System.out.printf("Case %d: %d\n", i + 1, list.get(i));
		}
	}
} Main private static final Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args){
		List<Integer> list = new ArrayList<Integer>();
		for(;;){
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		}

		for(int i = 0; i < list.size(); i++){
			System.out.printf("Case %d: %d\n", i + 1, list.get(i));
		}
	} main {
		List<Integer> list = new ArrayList<Integer>();
		for(;;){
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		}

		for(int i = 0; i < list.size(); i++){
			System.out.printf("Case %d: %d\n", i + 1, list.get(i));
		}
	} List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for(;;){
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		} ; {
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		} {
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		} int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan if(x == 0){
				break;
			} x == 0 x 0 {
				break;
			} break; list.add(x) list.add list x for(int i = 0; i < list.size(); i++){
			System.out.printf("Case %d: %d\n", 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.printf("Case %d: %d\n", i + 1, list.get(i));
		} {
			System.out.printf("Case %d: %d\n", i + 1, list.get(i));
		} System.out.printf("Case %d: %d\n", i + 1, list.get(i)) System.out.printf System.out System System.out "Case %d: %d\n" i + 1 i 1 list.get(i) list.get list i String[] args args public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		List<Integer> list = new ArrayList<Integer>();
		for(;;){
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		}

		for(int i = 0; i < list.size(); i++){
			System.out.printf("Case %d: %d\n", i + 1, list.get(i));
		}
	}
} public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		List<Integer> list = new ArrayList<Integer>();
		for(;;){
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		}

		for(int i = 0; i < list.size(); i++){
			System.out.printf("Case %d: %d\n", i + 1, list.get(i));
		}
	}
} Main
import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		List<Integer> list = new ArrayList<Integer>();
		for(;;){
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		}

		for(int i = 0; i < list.size(); i++){
			System.out.printf("Case %d: %d\n", i + 1, list.get(i));
		}
	}
}