import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

			for(int i=1;;i++){
				int n = scan.nextInt();
				if(n != 0)
					System.out.println("Case " + i + ": " + n);
				else if(n == 0){
					scan.close();
					break;
				}
			}
	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

			for(int i=1;;i++){
				int n = scan.nextInt();
				if(n != 0)
					System.out.println("Case " + i + ": " + n);
				else if(n == 0){
					scan.close();
					break;
				}
			}
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

			for(int i=1;;i++){
				int n = scan.nextInt();
				if(n != 0)
					System.out.println("Case " + i + ": " + n);
				else if(n == 0){
					scan.close();
					break;
				}
			}
	} main {

		Scanner scan = new Scanner(System.in);

			for(int i=1;;i++){
				int n = scan.nextInt();
				if(n != 0)
					System.out.println("Case " + i + ": " + n);
				else if(n == 0){
					scan.close();
					break;
				}
			}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) for(int i=1;;i++){
				int n = scan.nextInt();
				if(n != 0)
					System.out.println("Case " + i + ": " + n);
				else if(n == 0){
					scan.close();
					break;
				}
			} int i=1; int i=1; i 1 i++ i++ i {
				int n = scan.nextInt();
				if(n != 0)
					System.out.println("Case " + i + ": " + n);
				else if(n == 0){
					scan.close();
					break;
				}
			} {
				int n = scan.nextInt();
				if(n != 0)
					System.out.println("Case " + i + ": " + n);
				else if(n == 0){
					scan.close();
					break;
				}
			} int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan if(n != 0)
					System.out.println("Case " + i + ": " + n);
				else if(n == 0){
					scan.close();
					break;
				} n != 0 n 0 System.out.println("Case " + i + ": " + n) System.out.println System.out System System.out "Case " + i + ": " + n ": " "Case " + i + ": " + n "Case " i ": " n if(n == 0){
					scan.close();
					break;
				} n == 0 n 0 {
					scan.close();
					break;
				} scan.close() scan.close scan break; String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

			for(int i=1;;i++){
				int n = scan.nextInt();
				if(n != 0)
					System.out.println("Case " + i + ": " + n);
				else if(n == 0){
					scan.close();
					break;
				}
			}
	}
}