import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		
		for (int i = 1; i > 0; i++) {
			int x = scan.nextInt();
			if(x == 0) {
				break;
			}
			else{
				System.out.println("Case " + i + ": " + x);
			}
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		
		for (int i = 1; i > 0; i++) {
			int x = scan.nextInt();
			if(x == 0) {
				break;
			}
			else{
				System.out.println("Case " + i + ": " + x);
			}
		}
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		
		for (int i = 1; i > 0; i++) {
			int x = scan.nextInt();
			if(x == 0) {
				break;
			}
			else{
				System.out.println("Case " + i + ": " + x);
			}
		}
	} main {
		// TODO ?????????????????????????????????????????????


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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		
		for (int i = 1; i > 0; i++) {
			int x = scan.nextInt();
			if(x == 0) {
				break;
			}
			else{
				System.out.println("Case " + i + ": " + x);
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		
		for (int i = 1; i > 0; i++) {
			int x = scan.nextInt();
			if(x == 0) {
				break;
			}
			else{
				System.out.println("Case " + i + ": " + x);
			}
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		
		for (int i = 1; i > 0; i++) {
			int x = scan.nextInt();
			if(x == 0) {
				break;
			}
			else{
				System.out.println("Case " + i + ": " + x);
			}
		}
	}

}