import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws IOException {
				
		BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
		Scanner sc = new Scanner(bis);
		
		
	    int data;
	    for(int i =1;;i++){data=sc.nextInt();
	    
	      if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;}}
	
		
	}
} import java.io.BufferedInputStream; BufferedInputStream java.io import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws IOException {
				
		BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
		Scanner sc = new Scanner(bis);
		
		
	    int data;
	    for(int i =1;;i++){data=sc.nextInt();
	    
	      if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;}}
	
		
	}
} Main public static void main(String[] args) throws IOException {
				
		BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
		Scanner sc = new Scanner(bis);
		
		
	    int data;
	    for(int i =1;;i++){data=sc.nextInt();
	    
	      if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;}}
	
		
	} main {
				
		BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
		Scanner sc = new Scanner(bis);
		
		
	    int data;
	    for(int i =1;;i++){data=sc.nextInt();
	    
	      if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;}}
	
		
	} BufferedReader bis=new BufferedReader(new InputStreamReader(System.in)); bis new BufferedReader(new InputStreamReader(System.in)) Scanner sc = new Scanner(bis); sc new Scanner(bis) int data; data for(int i =1;;i++){data=sc.nextInt();
	    
	      if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;}} int i =1; int i =1; i 1 i++ i++ i {data=sc.nextInt();
	    
	      if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;}} {data=sc.nextInt();
	    
	      if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;}} data=sc.nextInt() data sc.nextInt() sc.nextInt sc if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;} data!=0 data 0 {
	    	System.out.println("Case "+i+": "+data);
	    } System.out.println("Case "+i+": "+data) System.out.println System.out System System.out "Case "+i+": "+data ": " "Case "+i+": "+data "Case " i ": " data {break;} break; String[] args args public class Main {
	public static void main(String[] args) throws IOException {
				
		BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
		Scanner sc = new Scanner(bis);
		
		
	    int data;
	    for(int i =1;;i++){data=sc.nextInt();
	    
	      if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;}}
	
		
	}
} public class Main {
	public static void main(String[] args) throws IOException {
				
		BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
		Scanner sc = new Scanner(bis);
		
		
	    int data;
	    for(int i =1;;i++){data=sc.nextInt();
	    
	      if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;}}
	
		
	}
} Main
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws IOException {
				
		BufferedReader bis=new BufferedReader(new InputStreamReader(System.in));
		Scanner sc = new Scanner(bis);
		
		
	    int data;
	    for(int i =1;;i++){data=sc.nextInt();
	    
	      if(data!=0){
	    	System.out.println("Case "+i+": "+data);
	    }else{break;}}
	
		
	}
}