import java.util.Scanner;

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

public class Main {
	public static void main(String[] args) {
		int i = 0;
		Scanner scan = new Scanner(System.in);;
		while(true) {
			i++;
			int a = scan.nextInt();
			if(a == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + a);
		}
		scan.close();
	}
}
