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

class Main {

	public static void main(String[] args) throws IOException {

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

		int i = 1;

		do {
			String num = br.readLine();

			if(Integer.parseInt(num) == 0){
				break;

			}else {
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}



		} while (i !=0);




	}

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

	public static void main(String[] args) throws IOException {

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

		int i = 1;

		do {
			String num = br.readLine();

			if(Integer.parseInt(num) == 0){
				break;

			}else {
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}



		} while (i !=0);




	}

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

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

		int i = 1;

		do {
			String num = br.readLine();

			if(Integer.parseInt(num) == 0){
				break;

			}else {
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}



		} while (i !=0);




	} main {

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

		int i = 1;

		do {
			String num = br.readLine();

			if(Integer.parseInt(num) == 0){
				break;

			}else {
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}



		} while (i !=0);




	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int i = 1; i 1 do {
			String num = br.readLine();

			if(Integer.parseInt(num) == 0){
				break;

			}else {
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}



		} while (i !=0); i !=0 i 0 {
			String num = br.readLine();

			if(Integer.parseInt(num) == 0){
				break;

			}else {
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}



		} String num = br.readLine(); num br.readLine() br.readLine br if(Integer.parseInt(num) == 0){
				break;

			}else {
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			} Integer.parseInt(num) == 0 Integer.parseInt(num) Integer.parseInt Integer num 0 {
				break;

			} break; {
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			} System.out.println("Case"+" "+i+":"+" "+num) System.out.println System.out System System.out "Case"+" "+i+":"+" "+num " " ":" i "Case"+" "+i+":"+" "+num "Case" " " i ":" " " num i++ i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

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

		int i = 1;

		do {
			String num = br.readLine();

			if(Integer.parseInt(num) == 0){
				break;

			}else {
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}



		} while (i !=0);




	}

}