import java.util.Scanner;


public class Main {

	public static void main(String[] args) {

		int cnt = 0;
		Scanner sc = new Scanner(System.in);
		int input = 0;
		while((input = sc.nextInt()) != 0) {
			cnt++;
			System.out.println("Case " + cnt + ":" + " " + input);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		int cnt = 0;
		Scanner sc = new Scanner(System.in);
		int input = 0;
		while((input = sc.nextInt()) != 0) {
			cnt++;
			System.out.println("Case " + cnt + ":" + " " + input);
		}
	}
} Main public static void main(String[] args) {

		int cnt = 0;
		Scanner sc = new Scanner(System.in);
		int input = 0;
		while((input = sc.nextInt()) != 0) {
			cnt++;
			System.out.println("Case " + cnt + ":" + " " + input);
		}
	} main {

		int cnt = 0;
		Scanner sc = new Scanner(System.in);
		int input = 0;
		while((input = sc.nextInt()) != 0) {
			cnt++;
			System.out.println("Case " + cnt + ":" + " " + input);
		}
	} int cnt = 0; cnt 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int input = 0; input 0 while((input = sc.nextInt()) != 0) {
			cnt++;
			System.out.println("Case " + cnt + ":" + " " + input);
		} (input = sc.nextInt()) != 0 (input = sc.nextInt()) input sc.nextInt() sc.nextInt sc 0 {
			cnt++;
			System.out.println("Case " + cnt + ":" + " " + input);
		} cnt++ cnt System.out.println("Case " + cnt + ":" + " " + input) System.out.println System.out System System.out "Case " + cnt + ":" + " " + input " " ":" "Case " + cnt + ":" + " " + input "Case " cnt ":" " " input String[] args args public class Main {

	public static void main(String[] args) {

		int cnt = 0;
		Scanner sc = new Scanner(System.in);
		int input = 0;
		while((input = sc.nextInt()) != 0) {
			cnt++;
			System.out.println("Case " + cnt + ":" + " " + input);
		}
	}
} public class Main {

	public static void main(String[] args) {

		int cnt = 0;
		Scanner sc = new Scanner(System.in);
		int input = 0;
		while((input = sc.nextInt()) != 0) {
			cnt++;
			System.out.println("Case " + cnt + ":" + " " + input);
		}
	}
} Main
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {

		int cnt = 0;
		Scanner sc = new Scanner(System.in);
		int input = 0;
		while((input = sc.nextInt()) != 0) {
			cnt++;
			System.out.println("Case " + cnt + ":" + " " + input);
		}
	}
}