import java.io.IOException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException{
		int t =0;
		Scanner sc = new Scanner(System.in);
		while(true){
			int x =sc.nextInt();
			if(x == 0) break;
			t++;
			System.out.println("Case "+ t + ": " + x );
		}
        
        
	}
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws IOException{
		int t =0;
		Scanner sc = new Scanner(System.in);
		while(true){
			int x =sc.nextInt();
			if(x == 0) break;
			t++;
			System.out.println("Case "+ t + ": " + x );
		}
        
        
	}
} Main public static void main(String[] args) throws IOException{
		int t =0;
		Scanner sc = new Scanner(System.in);
		while(true){
			int x =sc.nextInt();
			if(x == 0) break;
			t++;
			System.out.println("Case "+ t + ": " + x );
		}
        
        
	} main {
		int t =0;
		Scanner sc = new Scanner(System.in);
		while(true){
			int x =sc.nextInt();
			if(x == 0) break;
			t++;
			System.out.println("Case "+ t + ": " + x );
		}
        
        
	} int t =0; t 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(true){
			int x =sc.nextInt();
			if(x == 0) break;
			t++;
			System.out.println("Case "+ t + ": " + x );
		} true {
			int x =sc.nextInt();
			if(x == 0) break;
			t++;
			System.out.println("Case "+ t + ": " + x );
		} int x =sc.nextInt(); x sc.nextInt() sc.nextInt sc if(x == 0) break; x == 0 x 0 break; t++ t System.out.println("Case "+ t + ": " + x ) System.out.println System.out System System.out "Case "+ t + ": " + x ": " "Case "+ t + ": " + x "Case " t ": " x String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		int t =0;
		Scanner sc = new Scanner(System.in);
		while(true){
			int x =sc.nextInt();
			if(x == 0) break;
			t++;
			System.out.println("Case "+ t + ": " + x );
		}
        
        
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		int t =0;
		Scanner sc = new Scanner(System.in);
		while(true){
			int x =sc.nextInt();
			if(x == 0) break;
			t++;
			System.out.println("Case "+ t + ": " + x );
		}
        
        
	}
} Main
import java.io.IOException;
import java.util.Scanner;

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