import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner kbScanner = new Scanner(System.in);
		int input, count = 1;
		
		while((input = kbScanner.nextInt()) != 0){
			System.out.println("Case " + count + ": " + input);
			count++;
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner kbScanner = new Scanner(System.in);
		int input, count = 1;
		
		while((input = kbScanner.nextInt()) != 0){
			System.out.println("Case " + count + ": " + input);
			count++;
		}
	}
} Main public static void main(String[] args) {
		Scanner kbScanner = new Scanner(System.in);
		int input, count = 1;
		
		while((input = kbScanner.nextInt()) != 0){
			System.out.println("Case " + count + ": " + input);
			count++;
		}
	} main {
		Scanner kbScanner = new Scanner(System.in);
		int input, count = 1;
		
		while((input = kbScanner.nextInt()) != 0){
			System.out.println("Case " + count + ": " + input);
			count++;
		}
	} Scanner kbScanner = new Scanner(System.in); kbScanner new Scanner(System.in) int input input count = 1; count 1 while((input = kbScanner.nextInt()) != 0){
			System.out.println("Case " + count + ": " + input);
			count++;
		} (input = kbScanner.nextInt()) != 0 (input = kbScanner.nextInt()) input kbScanner.nextInt() kbScanner.nextInt kbScanner 0 {
			System.out.println("Case " + count + ": " + input);
			count++;
		} System.out.println("Case " + count + ": " + input) System.out.println System.out System System.out "Case " + count + ": " + input ": " "Case " + count + ": " + input "Case " count ": " input count++ count String[] args args public class Main {
	public static void main(String[] args) {
		Scanner kbScanner = new Scanner(System.in);
		int input, count = 1;
		
		while((input = kbScanner.nextInt()) != 0){
			System.out.println("Case " + count + ": " + input);
			count++;
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner kbScanner = new Scanner(System.in);
		int input, count = 1;
		
		while((input = kbScanner.nextInt()) != 0){
			System.out.println("Case " + count + ": " + input);
			count++;
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner kbScanner = new Scanner(System.in);
		int input, count = 1;
		
		while((input = kbScanner.nextInt()) != 0){
			System.out.println("Case " + count + ": " + input);
			count++;
		}
	}
}