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

public class Main {
    public static void main(String[] args)throws Exception {
    	InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

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

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

    	int i = 1;
    	while(true){
    		int x = Integer.parseInt(br.readLine());
    		 if(x == 0){
    			 break;
    		 }
    		 System.out.println("Case" + " " + i + ":" + " " + x);
    		 i++;
    	}
    } main {
    	InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

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

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

    	int i = 1;
    	while(true){
    		int x = Integer.parseInt(br.readLine());
    		 if(x == 0){
    			 break;
    		 }
    		 System.out.println("Case" + " " + i + ":" + " " + x);
    		 i++;
    	}
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args)throws Exception {
    	InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

    	int i = 1;
    	while(true){
    		int x = Integer.parseInt(br.readLine());
    		 if(x == 0){
    			 break;
    		 }
    		 System.out.println("Case" + " " + i + ":" + " " + x);
    		 i++;
    	}
    }
}