import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int i = stdIn.nextInt();
		for (int n = 1; i != 0; n++) {
			System.out.println("Case " + n + ": " + i);
			i = stdIn.nextInt();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int i = stdIn.nextInt();
		for (int n = 1; i != 0; n++) {
			System.out.println("Case " + n + ": " + i);
			i = stdIn.nextInt();
		}
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int i = stdIn.nextInt();
		for (int n = 1; i != 0; n++) {
			System.out.println("Case " + n + ": " + i);
			i = stdIn.nextInt();
		}
	} main {
		Scanner stdIn = new Scanner(System.in);
		int i = stdIn.nextInt();
		for (int n = 1; i != 0; n++) {
			System.out.println("Case " + n + ": " + i);
			i = stdIn.nextInt();
		}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int i = stdIn.nextInt(); i stdIn.nextInt() stdIn.nextInt stdIn for (int n = 1; i != 0; n++) {
			System.out.println("Case " + n + ": " + i);
			i = stdIn.nextInt();
		} int n = 1; int n = 1; n 1 i != 0 i 0 n++ n++ n {
			System.out.println("Case " + n + ": " + i);
			i = stdIn.nextInt();
		} {
			System.out.println("Case " + n + ": " + i);
			i = stdIn.nextInt();
		} System.out.println("Case " + n + ": " + i) System.out.println System.out System System.out "Case " + n + ": " + i ": " "Case " + n + ": " + i "Case " n ": " i i = stdIn.nextInt() i stdIn.nextInt() stdIn.nextInt stdIn String[] args args public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int i = stdIn.nextInt();
		for (int n = 1; i != 0; n++) {
			System.out.println("Case " + n + ": " + i);
			i = stdIn.nextInt();
		}
	}
} public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int i = stdIn.nextInt();
		for (int n = 1; i != 0; n++) {
			System.out.println("Case " + n + ": " + i);
			i = stdIn.nextInt();
		}
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int i = stdIn.nextInt();
		for (int n = 1; i != 0; n++) {
			System.out.println("Case " + n + ": " + i);
			i = stdIn.nextInt();
		}
	}
}