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));
		for (int i = 1; ; i++) {
			String s=br.readLine();
			if(s.equals("0"))
				break;
			System.out.println("Case "+i+": "+s);
		}

	}

} 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));
		for (int i = 1; ; i++) {
			String s=br.readLine();
			if(s.equals("0"))
				break;
			System.out.println("Case "+i+": "+s);
		}

	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		for (int i = 1; ; i++) {
			String s=br.readLine();
			if(s.equals("0"))
				break;
			System.out.println("Case "+i+": "+s);
		}

	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		for (int i = 1; ; i++) {
			String s=br.readLine();
			if(s.equals("0"))
				break;
			System.out.println("Case "+i+": "+s);
		}

	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) for (int i = 1; ; i++) {
			String s=br.readLine();
			if(s.equals("0"))
				break;
			System.out.println("Case "+i+": "+s);
		} int i = 1; int i = 1; i 1 i++ i++ i {
			String s=br.readLine();
			if(s.equals("0"))
				break;
			System.out.println("Case "+i+": "+s);
		} {
			String s=br.readLine();
			if(s.equals("0"))
				break;
			System.out.println("Case "+i+": "+s);
		} String s=br.readLine(); s br.readLine() br.readLine br if(s.equals("0"))
				break; s.equals("0") s.equals s "0" break; System.out.println("Case "+i+": "+s) System.out.println System.out System System.out "Case "+i+": "+s ": " "Case "+i+": "+s "Case " i ": " s 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));
		for (int i = 1; ; i++) {
			String s=br.readLine();
			if(s.equals("0"))
				break;
			System.out.println("Case "+i+": "+s);
		}

	}

}