import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		//キーボード入力メソッド
		Scanner sc = new Scanner(System.in);

		int x = 1;
		int i = 0;

		//xが0のとき、終了
		while(true) {
			x = sc.nextInt();
			i++;
			if(x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
		}
	}

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

	public static void main(String[] args) throws IOException {
		//キーボード入力メソッド
		Scanner sc = new Scanner(System.in);

		int x = 1;
		int i = 0;

		//xが0のとき、終了
		while(true) {
			x = sc.nextInt();
			i++;
			if(x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
		}
	}

} Main public static void main(String[] args) throws IOException {
		//キーボード入力メソッド
		Scanner sc = new Scanner(System.in);

		int x = 1;
		int i = 0;

		//xが0のとき、終了
		while(true) {
			x = sc.nextInt();
			i++;
			if(x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
		}
	} main {
		//キーボード入力メソッド
		Scanner sc = new Scanner(System.in);

		int x = 1;
		int i = 0;

		//xが0のとき、終了
		while(true) {
			x = sc.nextInt();
			i++;
			if(x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = 1; x 1 int i = 0; i 0 while(true) {
			x = sc.nextInt();
			i++;
			if(x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
		} true {
			x = sc.nextInt();
			i++;
			if(x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
		} x = sc.nextInt() x sc.nextInt() sc.nextInt sc i++ i if(x == 0) {
				break;
			} x == 0 x 0 {
				break;
			} break; System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		//キーボード入力メソッド
		Scanner sc = new Scanner(System.in);

		int x = 1;
		int i = 0;

		//xが0のとき、終了
		while(true) {
			x = sc.nextInt();
			i++;
			if(x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
		}
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		//キーボード入力メソッド
		Scanner sc = new Scanner(System.in);

		int x = 1;
		int i = 0;

		//xが0のとき、終了
		while(true) {
			x = sc.nextInt();
			i++;
			if(x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
		}
	}

} Main
import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		//キーボード入力メソッド
		Scanner sc = new Scanner(System.in);

		int x = 1;
		int i = 0;

		//xが0のとき、終了
		while(true) {
			x = sc.nextInt();
			i++;
			if(x == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + x);
		}
	}

}

