import java.util.*;

public class Main {

	private static Scanner sc;

	public static void main(String[] args) {
	sc = new Scanner(System.in);
	int a = 1 ;
	int n =1;
	while(a!=0){
	    a =sc.nextInt();
	    if(a!=0){
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    }
		
		
   	}
	


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

	private static Scanner sc;

	public static void main(String[] args) {
	sc = new Scanner(System.in);
	int a = 1 ;
	int n =1;
	while(a!=0){
	    a =sc.nextInt();
	    if(a!=0){
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    }
		
		
   	}
	


}
	
} Main private static Scanner sc; sc public static void main(String[] args) {
	sc = new Scanner(System.in);
	int a = 1 ;
	int n =1;
	while(a!=0){
	    a =sc.nextInt();
	    if(a!=0){
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    }
		
		
   	}
	


} main {
	sc = new Scanner(System.in);
	int a = 1 ;
	int n =1;
	while(a!=0){
	    a =sc.nextInt();
	    if(a!=0){
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    }
		
		
   	}
	


} sc = new Scanner(System.in) sc new Scanner(System.in) int a = 1 ; a 1 int n =1; n 1 while(a!=0){
	    a =sc.nextInt();
	    if(a!=0){
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    }
		
		
   	} a!=0 a 0 {
	    a =sc.nextInt();
	    if(a!=0){
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    }
		
		
   	} a =sc.nextInt() a sc.nextInt() sc.nextInt sc if(a!=0){
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    } a!=0 a 0 {
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    } System.out.println("Case "+n+": "+a) System.out.println System.out System System.out "Case "+n+": "+a ": " "Case "+n+": "+a "Case " n ": " a n=n+1 n n+1 n 1 String[] args args public class Main {

	private static Scanner sc;

	public static void main(String[] args) {
	sc = new Scanner(System.in);
	int a = 1 ;
	int n =1;
	while(a!=0){
	    a =sc.nextInt();
	    if(a!=0){
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    }
		
		
   	}
	


}
	
} public class Main {

	private static Scanner sc;

	public static void main(String[] args) {
	sc = new Scanner(System.in);
	int a = 1 ;
	int n =1;
	while(a!=0){
	    a =sc.nextInt();
	    if(a!=0){
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    }
		
		
   	}
	


}
	
} Main
import java.util.*;

public class Main {

	private static Scanner sc;

	public static void main(String[] args) {
	sc = new Scanner(System.in);
	int a = 1 ;
	int n =1;
	while(a!=0){
	    a =sc.nextInt();
	    if(a!=0){
		System.out.println("Case "+n+": "+a);
		n=n+1;
	    }
		
		
   	}
	


}
	
}
    	