import java.util.Scanner;

 class Main {

	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int i = 1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0)break;
			System.out.println("Case " + i + ": " + x);
			i++;
		}
	}
} import java.util.Scanner; Scanner java.util class Main {

	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int i = 1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0)break;
			System.out.println("Case " + i + ": " + x);
			i++;
		}
	}
} Main @SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int i = 1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0)break;
			System.out.println("Case " + i + ": " + x);
			i++;
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int i = 1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0)break;
			System.out.println("Case " + i + ": " + x);
			i++;
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int i = 1; i 1 int x; x while(true){
			x = scan.nextInt();
			if(x == 0)break;
			System.out.println("Case " + i + ": " + x);
			i++;
		} true {
			x = scan.nextInt();
			if(x == 0)break;
			System.out.println("Case " + i + ": " + x);
			i++;
		} x = scan.nextInt() x scan.nextInt() scan.nextInt scan if(x == 0)break; x == 0 x 0 break; 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
import java.util.Scanner;

 class Main {

	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int i = 1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0)break;
			System.out.println("Case " + i + ": " + x);
			i++;
		}
	}
}