import java.util.Scanner;

public class Main {

	private static Scanner scan;

	public static void main(String[] args) {

		scan = new Scanner(System.in);
		int i = scan.nextInt();
		int x = 1;
		while(i!=0){
			System.out.println("Case "+x+": "+i);
			x++;
			i = scan.nextInt();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	private static Scanner scan;

	public static void main(String[] args) {

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

		scan = new Scanner(System.in);
		int i = scan.nextInt();
		int x = 1;
		while(i!=0){
			System.out.println("Case "+x+": "+i);
			x++;
			i = scan.nextInt();
		}
	} main {

		scan = new Scanner(System.in);
		int i = scan.nextInt();
		int x = 1;
		while(i!=0){
			System.out.println("Case "+x+": "+i);
			x++;
			i = scan.nextInt();
		}
	} scan = new Scanner(System.in) scan new Scanner(System.in) int i = scan.nextInt(); i scan.nextInt() scan.nextInt scan int x = 1; x 1 while(i!=0){
			System.out.println("Case "+x+": "+i);
			x++;
			i = scan.nextInt();
		} i!=0 i 0 {
			System.out.println("Case "+x+": "+i);
			x++;
			i = scan.nextInt();
		} System.out.println("Case "+x+": "+i) System.out.println System.out System System.out "Case "+x+": "+i ": " "Case "+x+": "+i "Case " x ": " i x++ x i = scan.nextInt() i scan.nextInt() scan.nextInt scan String[] args args public class Main {

	private static Scanner scan;

	public static void main(String[] args) {

		scan = new Scanner(System.in);
		int i = scan.nextInt();
		int x = 1;
		while(i!=0){
			System.out.println("Case "+x+": "+i);
			x++;
			i = scan.nextInt();
		}
	}
} public class Main {

	private static Scanner scan;

	public static void main(String[] args) {

		scan = new Scanner(System.in);
		int i = scan.nextInt();
		int x = 1;
		while(i!=0){
			System.out.println("Case "+x+": "+i);
			x++;
			i = scan.nextInt();
		}
	}
} Main
import java.util.Scanner;

public class Main {

	private static Scanner scan;

	public static void main(String[] args) {

		scan = new Scanner(System.in);
		int i = scan.nextInt();
		int x = 1;
		while(i!=0){
			System.out.println("Case "+x+": "+i);
			x++;
			i = scan.nextInt();
		}
	}
}