import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int intCount = 0;

		try {

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while(true){
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			}
			/*for (int i = 0; i < 10000; i++) {

				//??\????????????
				BufferedReader strLine = new BufferedReader(new InputStreamReader(System.in));
				String strInput = strLine.readLine();

				intx = Integer.parseInt(strInput);

				if (1 <= intx && intx <= 10000) {
					//??¶??°?????§????????¨
					intCount++;

					//??????
					System.out.println("Case " +  intCount + ": " + intx);
				}else{
					break;
				}
			}*/
			//System.out.println(intCount);
		}catch (IOException e1) {
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int intCount = 0;

		try {

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while(true){
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			}
			/*for (int i = 0; i < 10000; i++) {

				//??\????????????
				BufferedReader strLine = new BufferedReader(new InputStreamReader(System.in));
				String strInput = strLine.readLine();

				intx = Integer.parseInt(strInput);

				if (1 <= intx && intx <= 10000) {
					//??¶??°?????§????????¨
					intCount++;

					//??????
					System.out.println("Case " +  intCount + ": " + intx);
				}else{
					break;
				}
			}*/
			//System.out.println(intCount);
		}catch (IOException e1) {
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	}

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

		//?????£?????????
		int intx = 0;
		int intCount = 0;

		try {

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while(true){
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			}
			/*for (int i = 0; i < 10000; i++) {

				//??\????????????
				BufferedReader strLine = new BufferedReader(new InputStreamReader(System.in));
				String strInput = strLine.readLine();

				intx = Integer.parseInt(strInput);

				if (1 <= intx && intx <= 10000) {
					//??¶??°?????§????????¨
					intCount++;

					//??????
					System.out.println("Case " +  intCount + ": " + intx);
				}else{
					break;
				}
			}*/
			//System.out.println(intCount);
		}catch (IOException e1) {
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	} main {

		//?????£?????????
		int intx = 0;
		int intCount = 0;

		try {

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while(true){
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			}
			/*for (int i = 0; i < 10000; i++) {

				//??\????????????
				BufferedReader strLine = new BufferedReader(new InputStreamReader(System.in));
				String strInput = strLine.readLine();

				intx = Integer.parseInt(strInput);

				if (1 <= intx && intx <= 10000) {
					//??¶??°?????§????????¨
					intCount++;

					//??????
					System.out.println("Case " +  intCount + ": " + intx);
				}else{
					break;
				}
			}*/
			//System.out.println(intCount);
		}catch (IOException e1) {
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	} int intx = 0; intx 0 int intCount = 0; intCount 0 try {

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while(true){
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			}
			/*for (int i = 0; i < 10000; i++) {

				//??\????????????
				BufferedReader strLine = new BufferedReader(new InputStreamReader(System.in));
				String strInput = strLine.readLine();

				intx = Integer.parseInt(strInput);

				if (1 <= intx && intx <= 10000) {
					//??¶??°?????§????????¨
					intCount++;

					//??????
					System.out.println("Case " +  intCount + ": " + intx);
				}else{
					break;
				}
			}*/
			//System.out.println(intCount);
		}catch (IOException e1) {
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		} catch (IOException e1) {
			System.out.println(e1);
		} IOException e1 {
			System.out.println(e1);
		} System.out.println(e1) System.out.println System.out System System.out e1 catch (NumberFormatException e2) {
			System.out.println(e2);
		} NumberFormatException e2 {
			System.out.println(e2);
		} System.out.println(e2) System.out.println System.out System System.out e2 {

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while(true){
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			}
			/*for (int i = 0; i < 10000; i++) {

				//??\????????????
				BufferedReader strLine = new BufferedReader(new InputStreamReader(System.in));
				String strInput = strLine.readLine();

				intx = Integer.parseInt(strInput);

				if (1 <= intx && intx <= 10000) {
					//??¶??°?????§????????¨
					intCount++;

					//??????
					System.out.println("Case " +  intCount + ": " + intx);
				}else{
					break;
				}
			}*/
			//System.out.println(intCount);
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) while(true){
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			} true {
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			} String strline = br.readLine(); strline br.readLine() br.readLine br if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				} strline != null strline null {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				} intx = Integer.parseInt(strline) intx Integer.parseInt(strline) Integer.parseInt Integer strline if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					} 1 <= intx && intx <= 10000 1 <= intx 1 intx intx <= 10000 intx 10000 {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					} intCount++ intCount System.out.println("Case " +  intCount + ": " + intx) System.out.println System.out System System.out "Case " +  intCount + ": " + intx ": " "Case " +  intCount + ": " + intx "Case " intCount ": " intx {
						break;
					} break; {
					break;
				} break; String[] args args public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int intCount = 0;

		try {

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while(true){
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			}
			/*for (int i = 0; i < 10000; i++) {

				//??\????????????
				BufferedReader strLine = new BufferedReader(new InputStreamReader(System.in));
				String strInput = strLine.readLine();

				intx = Integer.parseInt(strInput);

				if (1 <= intx && intx <= 10000) {
					//??¶??°?????§????????¨
					intCount++;

					//??????
					System.out.println("Case " +  intCount + ": " + intx);
				}else{
					break;
				}
			}*/
			//System.out.println(intCount);
		}catch (IOException e1) {
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	}

} public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int intCount = 0;

		try {

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while(true){
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			}
			/*for (int i = 0; i < 10000; i++) {

				//??\????????????
				BufferedReader strLine = new BufferedReader(new InputStreamReader(System.in));
				String strInput = strLine.readLine();

				intx = Integer.parseInt(strInput);

				if (1 <= intx && intx <= 10000) {
					//??¶??°?????§????????¨
					intCount++;

					//??????
					System.out.println("Case " +  intCount + ": " + intx);
				}else{
					break;
				}
			}*/
			//System.out.println(intCount);
		}catch (IOException e1) {
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int intCount = 0;

		try {

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while(true){
				String strline = br.readLine();

				if (strline != null) {
					intx = Integer.parseInt(strline);
					if (1 <= intx && intx <= 10000) {
						//??¶??°?????§????????¨
						intCount++;

						//??????
						System.out.println("Case " +  intCount + ": " + intx);
					}else{
						break;
					}
				}else{
					break;
				}
			}
			/*for (int i = 0; i < 10000; i++) {

				//??\????????????
				BufferedReader strLine = new BufferedReader(new InputStreamReader(System.in));
				String strInput = strLine.readLine();

				intx = Integer.parseInt(strInput);

				if (1 <= intx && intx <= 10000) {
					//??¶??°?????§????????¨
					intCount++;

					//??????
					System.out.println("Case " +  intCount + ": " + intx);
				}else{
					break;
				}
			}*/
			//System.out.println(intCount);
		}catch (IOException e1) {
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	}

}