import java.util.Scanner;

public class Main {

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		
		for (int i = 1; i <= 10000; i++) {
			int n = sc.nextInt();
			if (n == 0) break;
			System.out.println("Case " + i + ": " + n);
		}
		
		sc.close();
	}

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

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		
		for (int i = 1; i <= 10000; i++) {
			int n = sc.nextInt();
			if (n == 0) break;
			System.out.println("Case " + i + ": " + n);
		}
		
		sc.close();
	}

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

		Scanner sc = new Scanner(System.in);
		
		for (int i = 1; i <= 10000; i++) {
			int n = sc.nextInt();
			if (n == 0) break;
			System.out.println("Case " + i + ": " + n);
		}
		
		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);
		
		for (int i = 1; i <= 10000; i++) {
			int n = sc.nextInt();
			if (n == 0) break;
			System.out.println("Case " + i + ": " + n);
		}
		
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for (int i = 1; i <= 10000; i++) {
			int n = sc.nextInt();
			if (n == 0) break;
			System.out.println("Case " + i + ": " + n);
		} int i = 1; int i = 1; i 1 i <= 10000 i 10000 i++ i++ i {
			int n = sc.nextInt();
			if (n == 0) break;
			System.out.println("Case " + i + ": " + n);
		} {
			int n = sc.nextInt();
			if (n == 0) break;
			System.out.println("Case " + i + ": " + n);
		} int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if (n == 0) break; n == 0 n 0 break; System.out.println("Case " + i + ": " + n) System.out.println System.out System System.out "Case " + i + ": " + n ": " "Case " + i + ": " + n "Case " i ": " n sc.close() sc.close sc String[] args args public class Main {

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		
		for (int i = 1; i <= 10000; i++) {
			int n = sc.nextInt();
			if (n == 0) break;
			System.out.println("Case " + i + ": " + n);
		}
		
		sc.close();
	}

} public class Main {

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		
		for (int i = 1; i <= 10000; i++) {
			int n = sc.nextInt();
			if (n == 0) break;
			System.out.println("Case " + i + ": " + n);
		}
		
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		
		for (int i = 1; i <= 10000; i++) {
			int n = sc.nextInt();
			if (n == 0) break;
			System.out.println("Case " + i + ": " + n);
		}
		
		sc.close();
	}

}