import java.util.Scanner;

  
public class Main {
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x;
	  int i=0;
	  int n=Integer.MAX_VALUE;
	  for(i=1;i<n;i++){
		  x=Integer.parseInt(sc.next());
		  if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  }
		  
	  }
	  
    
  }
} import java.util.Scanner; Scanner java.util public class Main {
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x;
	  int i=0;
	  int n=Integer.MAX_VALUE;
	  for(i=1;i<n;i++){
		  x=Integer.parseInt(sc.next());
		  if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  }
		  
	  }
	  
    
  }
} Main public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x;
	  int i=0;
	  int n=Integer.MAX_VALUE;
	  for(i=1;i<n;i++){
		  x=Integer.parseInt(sc.next());
		  if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  }
		  
	  }
	  
    
  } main {
	  Scanner sc=new Scanner(System.in);
	  int x;
	  int i=0;
	  int n=Integer.MAX_VALUE;
	  for(i=1;i<n;i++){
		  x=Integer.parseInt(sc.next());
		  if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  }
		  
	  }
	  
    
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int x; x int i=0; i 0 int n=Integer.MAX_VALUE; n Integer.MAX_VALUE Integer Integer.MAX_VALUE for(i=1;i<n;i++){
		  x=Integer.parseInt(sc.next());
		  if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  }
		  
	  } i=1; i=1 i 1 i<n i n i++ i++ i {
		  x=Integer.parseInt(sc.next());
		  if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  }
		  
	  } {
		  x=Integer.parseInt(sc.next());
		  if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  }
		  
	  } x=Integer.parseInt(sc.next()) x Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  } x!=0 x 0 {
		  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 {
			  
			  break;
		  } break; String[] args args public class Main {
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x;
	  int i=0;
	  int n=Integer.MAX_VALUE;
	  for(i=1;i<n;i++){
		  x=Integer.parseInt(sc.next());
		  if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  }
		  
	  }
	  
    
  }
} public class Main {
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x;
	  int i=0;
	  int n=Integer.MAX_VALUE;
	  for(i=1;i<n;i++){
		  x=Integer.parseInt(sc.next());
		  if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  }
		  
	  }
	  
    
  }
} Main
import java.util.Scanner;

  
public class Main {
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int x;
	  int i=0;
	  int n=Integer.MAX_VALUE;
	  for(i=1;i<n;i++){
		  x=Integer.parseInt(sc.next());
		  if(x!=0){
		  System.out.println("Case " + i +": " + x );
		  }
		  else{
			  
			  break;
		  }
		  
	  }
	  
    
  }
}