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