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