import java.util.Scanner;
public class Main
{
	public static void main(String args[])
	{
		int i=1, n;
		Scanner input = new Scanner(System.in);
		while(true)
		{
			n = input.nextInt();
			if(n == 0){
				break;
			}
			else {
				System.out.println("Case " + i + ": " + n);
			}
			i++;
		}
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String args[])
	{
		int i=1, n;
		Scanner input = new Scanner(System.in);
		while(true)
		{
			n = input.nextInt();
			if(n == 0){
				break;
			}
			else {
				System.out.println("Case " + i + ": " + n);
			}
			i++;
		}
	}
} Main public static void main(String args[])
	{
		int i=1, n;
		Scanner input = new Scanner(System.in);
		while(true)
		{
			n = input.nextInt();
			if(n == 0){
				break;
			}
			else {
				System.out.println("Case " + i + ": " + n);
			}
			i++;
		}
	} main {
		int i=1, n;
		Scanner input = new Scanner(System.in);
		while(true)
		{
			n = input.nextInt();
			if(n == 0){
				break;
			}
			else {
				System.out.println("Case " + i + ": " + n);
			}
			i++;
		}
	} int i=1 i 1 n; n Scanner input = new Scanner(System.in); input new Scanner(System.in) while(true)
		{
			n = input.nextInt();
			if(n == 0){
				break;
			}
			else {
				System.out.println("Case " + i + ": " + n);
			}
			i++;
		} true {
			n = input.nextInt();
			if(n == 0){
				break;
			}
			else {
				System.out.println("Case " + i + ": " + n);
			}
			i++;
		} n = input.nextInt() n input.nextInt() input.nextInt input if(n == 0){
				break;
			}
			else {
				System.out.println("Case " + i + ": " + n);
			} n == 0 n 0 {
				break;
			} break; {
				System.out.println("Case " + i + ": " + n);
			} System.out.println("Case " + i + ": " + n) System.out.println System.out System System.out "Case " + i + ": " + n ": " "Case " + i + ": " + n "Case " i ": " n i++ i String args[] args public class Main
{
	public static void main(String args[])
	{
		int i=1, n;
		Scanner input = new Scanner(System.in);
		while(true)
		{
			n = input.nextInt();
			if(n == 0){
				break;
			}
			else {
				System.out.println("Case " + i + ": " + n);
			}
			i++;
		}
	}
} public class Main
{
	public static void main(String args[])
	{
		int i=1, n;
		Scanner input = new Scanner(System.in);
		while(true)
		{
			n = input.nextInt();
			if(n == 0){
				break;
			}
			else {
				System.out.println("Case " + i + ": " + n);
			}
			i++;
		}
	}
} Main
import java.util.Scanner;
public class Main
{
	public static void main(String args[])
	{
		int i=1, n;
		Scanner input = new Scanner(System.in);
		while(true)
		{
			n = input.nextInt();
			if(n == 0){
				break;
			}
			else {
				System.out.println("Case " + i + ": " + n);
			}
			i++;
		}
	}
}