import java.io.*;
import java.util.Scanner;

class Main
{
	public static void main (String[] args) throws IOException
	{
  		Scanner in = new Scanner(System.in);

		for(int i = 1; i > 0; i++){

	      	String X;
	  		int x;
	
	  		X = in.nextLine();
	  		x = Integer.parseInt(X);
	
	      	if(x == 0){
	        	break;
	      	}else{
		  		System.out.println("Case " + i + ": " + x);
      		}
    	}
	}
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util class Main
{
	public static void main (String[] args) throws IOException
	{
  		Scanner in = new Scanner(System.in);

		for(int i = 1; i > 0; i++){

	      	String X;
	  		int x;
	
	  		X = in.nextLine();
	  		x = Integer.parseInt(X);
	
	      	if(x == 0){
	        	break;
	      	}else{
		  		System.out.println("Case " + i + ": " + x);
      		}
    	}
	}
} Main public static void main (String[] args) throws IOException
	{
  		Scanner in = new Scanner(System.in);

		for(int i = 1; i > 0; i++){

	      	String X;
	  		int x;
	
	  		X = in.nextLine();
	  		x = Integer.parseInt(X);
	
	      	if(x == 0){
	        	break;
	      	}else{
		  		System.out.println("Case " + i + ": " + x);
      		}
    	}
	} main {
  		Scanner in = new Scanner(System.in);

		for(int i = 1; i > 0; i++){

	      	String X;
	  		int x;
	
	  		X = in.nextLine();
	  		x = Integer.parseInt(X);
	
	      	if(x == 0){
	        	break;
	      	}else{
		  		System.out.println("Case " + i + ": " + x);
      		}
    	}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) for(int i = 1; i > 0; i++){

	      	String X;
	  		int x;
	
	  		X = in.nextLine();
	  		x = Integer.parseInt(X);
	
	      	if(x == 0){
	        	break;
	      	}else{
		  		System.out.println("Case " + i + ": " + x);
      		}
    	} int i = 1; int i = 1; i 1 i > 0 i 0 i++ i++ i {

	      	String X;
	  		int x;
	
	  		X = in.nextLine();
	  		x = Integer.parseInt(X);
	
	      	if(x == 0){
	        	break;
	      	}else{
		  		System.out.println("Case " + i + ": " + x);
      		}
    	} {

	      	String X;
	  		int x;
	
	  		X = in.nextLine();
	  		x = Integer.parseInt(X);
	
	      	if(x == 0){
	        	break;
	      	}else{
		  		System.out.println("Case " + i + ": " + x);
      		}
    	} String X; X int x; x X = in.nextLine() X in.nextLine() in.nextLine in x = Integer.parseInt(X) x Integer.parseInt(X) Integer.parseInt Integer X if(x == 0){
	        	break;
	      	}else{
		  		System.out.println("Case " + i + ": " + x);
      		} x == 0 x 0 {
	        	break;
	      	} break; {
		  		System.out.println("Case " + i + ": " + x);
      		} System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x String[] args args
import java.io.*;
import java.util.Scanner;

class Main
{
	public static void main (String[] args) throws IOException
	{
  		Scanner in = new Scanner(System.in);

		for(int i = 1; i > 0; i++){

	      	String X;
	  		int x;
	
	  		X = in.nextLine();
	  		x = Integer.parseInt(X);
	
	      	if(x == 0){
	        	break;
	      	}else{
		  		System.out.println("Case " + i + ": " + x);
      		}
    	}
	}
}