import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		
		int i=0;
		
		Scanner sc = new Scanner(System.in);
		
		
		while(true){
		    int x = sc.nextInt();
		    if ( x == 0 ) break;  
		
	         i++;
	    	 System.out.println("Case" + " " +i+ "" +":"+" " + x );
	     }

	     }
		
	} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		
		int i=0;
		
		Scanner sc = new Scanner(System.in);
		
		
		while(true){
		    int x = sc.nextInt();
		    if ( x == 0 ) break;  
		
	         i++;
	    	 System.out.println("Case" + " " +i+ "" +":"+" " + x );
	     }

	     }
		
	} Main public static void main(String[] args) {
		
		int i=0;
		
		Scanner sc = new Scanner(System.in);
		
		
		while(true){
		    int x = sc.nextInt();
		    if ( x == 0 ) break;  
		
	         i++;
	    	 System.out.println("Case" + " " +i+ "" +":"+" " + x );
	     }

	     } main {
		
		int i=0;
		
		Scanner sc = new Scanner(System.in);
		
		
		while(true){
		    int x = sc.nextInt();
		    if ( x == 0 ) break;  
		
	         i++;
	    	 System.out.println("Case" + " " +i+ "" +":"+" " + x );
	     }

	     } int i=0; i 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(true){
		    int x = sc.nextInt();
		    if ( x == 0 ) break;  
		
	         i++;
	    	 System.out.println("Case" + " " +i+ "" +":"+" " + x );
	     } true {
		    int x = sc.nextInt();
		    if ( x == 0 ) break;  
		
	         i++;
	    	 System.out.println("Case" + " " +i+ "" +":"+" " + x );
	     } int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc if ( x == 0 ) break; x == 0 x 0 break; i++ i System.out.println("Case" + " " +i+ "" +":"+" " + x ) System.out.println System.out System System.out "Case" + " " +i+ "" +":"+" " + x " " ":" "" i "Case" + " " +i+ "" +":"+" " + x "Case" " " i "" ":" " " x String[] args args public class Main {

	public static void main(String[] args) {
		
		int i=0;
		
		Scanner sc = new Scanner(System.in);
		
		
		while(true){
		    int x = sc.nextInt();
		    if ( x == 0 ) break;  
		
	         i++;
	    	 System.out.println("Case" + " " +i+ "" +":"+" " + x );
	     }

	     }
		
	} public class Main {

	public static void main(String[] args) {
		
		int i=0;
		
		Scanner sc = new Scanner(System.in);
		
		
		while(true){
		    int x = sc.nextInt();
		    if ( x == 0 ) break;  
		
	         i++;
	    	 System.out.println("Case" + " " +i+ "" +":"+" " + x );
	     }

	     }
		
	} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		
		int i=0;
		
		Scanner sc = new Scanner(System.in);
		
		
		while(true){
		    int x = sc.nextInt();
		    if ( x == 0 ) break;  
		
	         i++;
	    	 System.out.println("Case" + " " +i+ "" +":"+" " + x );
	     }

	     }
		
	}
