import java.util.Scanner;

public class Main {

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

	}

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

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

	}

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

	} main {
		Scanner scan = new Scanner(System.in);
		int i = 1;
		while(i<=10000){
			int x = scan.nextInt();
			if(1<=x&&x<=10000){
				System.out.println("Case "+i+": "+x);
			}else if(x == 0){
				break;
			}
			i++;
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int i = 1; i 1 while(i<=10000){
			int x = scan.nextInt();
			if(1<=x&&x<=10000){
				System.out.println("Case "+i+": "+x);
			}else if(x == 0){
				break;
			}
			i++;
		} i<=10000 i 10000 {
			int x = scan.nextInt();
			if(1<=x&&x<=10000){
				System.out.println("Case "+i+": "+x);
			}else if(x == 0){
				break;
			}
			i++;
		} int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan if(1<=x&&x<=10000){
				System.out.println("Case "+i+": "+x);
			}else if(x == 0){
				break;
			} 1<=x&&x<=10000 1<=x 1 x x<=10000 x 10000 {
				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 if(x == 0){
				break;
			} x == 0 x 0 {
				break;
			} break; i++ i String[] args args public class Main {

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

	}

} public class Main {

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

	}

} Main
import java.util.Scanner;

public class Main {

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

	}

}