import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
    		i++;
    		System.out.println("Case "+i+": "+x);
        }
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
    		i++;
    		System.out.println("Case "+i+": "+x);
        }
	}
} Main public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
    		i++;
    		System.out.println("Case "+i+": "+x);
        }
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
    		i++;
    		System.out.println("Case "+i+": "+x);
        }
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int i=0; i 0 while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
    		i++;
    		System.out.println("Case "+i+": "+x);
        } true {
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
    		i++;
    		System.out.println("Case "+i+": "+x);
        } int x=Integer.parseInt(br.readLine()); x Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br 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 ": " "Case "+i+": "+x "Case " i ": " x String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
        	int x=Integer.parseInt(br.readLine());
        	if(x==0) break;
    		i++;
    		System.out.println("Case "+i+": "+x);
        }
	}
}