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

public class Main {

	public static void main(String[] args) throws IOException
	{
		int[] n = new int[65535];
		int i=0,j;

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

		while(true)
		{
			n[i] = Integer.parseInt(br.readLine() );

			if(n[i]==0) break;
			else i++;
		}

		for(j=0; j<i; j++) System.out.println("Case " + (j+1) + ": " + n[j]);

	}
} 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) throws IOException
	{
		int[] n = new int[65535];
		int i=0,j;

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

		while(true)
		{
			n[i] = Integer.parseInt(br.readLine() );

			if(n[i]==0) break;
			else i++;
		}

		for(j=0; j<i; j++) System.out.println("Case " + (j+1) + ": " + n[j]);

	}
} Main public static void main(String[] args) throws IOException
	{
		int[] n = new int[65535];
		int i=0,j;

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

		while(true)
		{
			n[i] = Integer.parseInt(br.readLine() );

			if(n[i]==0) break;
			else i++;
		}

		for(j=0; j<i; j++) System.out.println("Case " + (j+1) + ": " + n[j]);

	} main {
		int[] n = new int[65535];
		int i=0,j;

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

		while(true)
		{
			n[i] = Integer.parseInt(br.readLine() );

			if(n[i]==0) break;
			else i++;
		}

		for(j=0; j<i; j++) System.out.println("Case " + (j+1) + ": " + n[j]);

	} int[] n = new int[65535]; n new int[65535] 65535 int i=0 i 0 j; j BufferedReader br = new BufferedReader(new InputStreamReader(System.in) ); br new BufferedReader(new InputStreamReader(System.in) ) while(true)
		{
			n[i] = Integer.parseInt(br.readLine() );

			if(n[i]==0) break;
			else i++;
		} true {
			n[i] = Integer.parseInt(br.readLine() );

			if(n[i]==0) break;
			else i++;
		} n[i] = Integer.parseInt(br.readLine() ) n[i] n i Integer.parseInt(br.readLine() ) Integer.parseInt Integer br.readLine() br.readLine br if(n[i]==0) break;
			else i++; n[i]==0 n[i] n i 0 break; i++ i for(j=0; j<i; j++) System.out.println("Case " + (j+1) + ": " + n[j]); j=0; j=0 j 0 j<i j i j++ j++ j System.out.println("Case " + (j+1) + ": " + n[j]); System.out.println("Case " + (j+1) + ": " + n[j]) System.out.println System.out System System.out "Case " + (j+1) + ": " + n[j] ": " "Case " + (j+1) + ": " + n[j] "Case " (j+1) j 1 ": " n[j] n j String[] args args public class Main {

	public static void main(String[] args) throws IOException
	{
		int[] n = new int[65535];
		int i=0,j;

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

		while(true)
		{
			n[i] = Integer.parseInt(br.readLine() );

			if(n[i]==0) break;
			else i++;
		}

		for(j=0; j<i; j++) System.out.println("Case " + (j+1) + ": " + n[j]);

	}
} public class Main {

	public static void main(String[] args) throws IOException
	{
		int[] n = new int[65535];
		int i=0,j;

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

		while(true)
		{
			n[i] = Integer.parseInt(br.readLine() );

			if(n[i]==0) break;
			else i++;
		}

		for(j=0; j<i; j++) System.out.println("Case " + (j+1) + ": " + n[j]);

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

public class Main {

	public static void main(String[] args) throws IOException
	{
		int[] n = new int[65535];
		int i=0,j;

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

		while(true)
		{
			n[i] = Integer.parseInt(br.readLine() );

			if(n[i]==0) break;
			else i++;
		}

		for(j=0; j<i; j++) System.out.println("Case " + (j+1) + ": " + n[j]);

	}
}