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