import java.util.Scanner;

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

public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		for(int i=1; i<=10000; i++)
		{		
			int n = scanner.nextInt();
			
			if(n == 0)
			{
				System.out.println("");
				break;
			}
			else
				System.out.println("Case "+i+": "+n);
		}
	}
}