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

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

} Main public static void main(String[] args)throws Exception
	{
		Scanner scan=new Scanner(System.in);
		
		int num;
		int i=1;
		
		while(true)
		{
				num=scan.nextInt();;		
			if(num!=0)
			{
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}
			else
			{
				break;
			}
		}
	} main {
		Scanner scan=new Scanner(System.in);
		
		int num;
		int i=1;
		
		while(true)
		{
				num=scan.nextInt();;		
			if(num!=0)
			{
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}
			else
			{
				break;
			}
		}
	} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int num; num int i=1; i 1 while(true)
		{
				num=scan.nextInt();;		
			if(num!=0)
			{
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}
			else
			{
				break;
			}
		} true {
				num=scan.nextInt();;		
			if(num!=0)
			{
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}
			else
			{
				break;
			}
		} num=scan.nextInt() num scan.nextInt() scan.nextInt scan if(num!=0)
			{
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}
			else
			{
				break;
			} num!=0 num 0 {
				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 {
				break;
			} break; String[] args args
import java.util.Scanner;
class Main
{
	public static void main(String[] args)throws Exception
	{
		Scanner scan=new Scanner(System.in);
		
		int num;
		int i=1;
		
		while(true)
		{
				num=scan.nextInt();;		
			if(num!=0)
			{
				System.out.println("Case"+" "+i+":"+" "+num);
				i++;
			}
			else
			{
				break;
			}
		}
	}

}