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

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

		ArrayList<Integer> numList = new ArrayList<Integer>();

		while (true) {
			int num = sc.nextInt();
			if(num != 0) {
				numList.add(num);
			} else {
				break;
			}
		}
		for(int i = 0;i < numList.size();i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}
		sc.close();
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		ArrayList<Integer> numList = new ArrayList<Integer>();

		while (true) {
			int num = sc.nextInt();
			if(num != 0) {
				numList.add(num);
			} else {
				break;
			}
		}
		for(int i = 0;i < numList.size();i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		ArrayList<Integer> numList = new ArrayList<Integer>();

		while (true) {
			int num = sc.nextInt();
			if(num != 0) {
				numList.add(num);
			} else {
				break;
			}
		}
		for(int i = 0;i < numList.size();i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		ArrayList<Integer> numList = new ArrayList<Integer>();

		while (true) {
			int num = sc.nextInt();
			if(num != 0) {
				numList.add(num);
			} else {
				break;
			}
		}
		for(int i = 0;i < numList.size();i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> numList = new ArrayList<Integer>(); numList new ArrayList<Integer>() while (true) {
			int num = sc.nextInt();
			if(num != 0) {
				numList.add(num);
			} else {
				break;
			}
		} true {
			int num = sc.nextInt();
			if(num != 0) {
				numList.add(num);
			} else {
				break;
			}
		} int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if(num != 0) {
				numList.add(num);
			} else {
				break;
			} num != 0 num 0 {
				numList.add(num);
			} numList.add(num) numList.add numList num {
				break;
			} break; for(int i = 0;i < numList.size();i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		} int i = 0; int i = 0; i 0 i < numList.size() i numList.size() numList.size numList i++ i++ i {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		} {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		} System.out.println("Case " + (i + 1) + ": " + numList.get(i)) System.out.println System.out System System.out "Case " + (i + 1) + ": " + numList.get(i) ": " "Case " + (i + 1) + ": " + numList.get(i) "Case " (i + 1) i 1 ": " numList.get(i) numList.get numList i sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		ArrayList<Integer> numList = new ArrayList<Integer>();

		while (true) {
			int num = sc.nextInt();
			if(num != 0) {
				numList.add(num);
			} else {
				break;
			}
		}
		for(int i = 0;i < numList.size();i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		ArrayList<Integer> numList = new ArrayList<Integer>();

		while (true) {
			int num = sc.nextInt();
			if(num != 0) {
				numList.add(num);
			} else {
				break;
			}
		}
		for(int i = 0;i < numList.size();i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}
		sc.close();
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

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

		ArrayList<Integer> numList = new ArrayList<Integer>();

		while (true) {
			int num = sc.nextInt();
			if(num != 0) {
				numList.add(num);
			} else {
				break;
			}
		}
		for(int i = 0;i < numList.size();i++) {
			System.out.println("Case " + (i + 1) + ": " + numList.get(i));
		}
		sc.close();
	}
}