//Print Test Cases
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String input;
		int count =1;
		while (!(input = in.readLine()).equals("0")){
			System.out.println("Case "+count+": "+input);
			count++;
		}
	}
} 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 in = new BufferedReader(new InputStreamReader(System.in));

		String input;
		int count =1;
		while (!(input = in.readLine()).equals("0")){
			System.out.println("Case "+count+": "+input);
			count++;
		}
	}
} Main public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String input;
		int count =1;
		while (!(input = in.readLine()).equals("0")){
			System.out.println("Case "+count+": "+input);
			count++;
		}
	} main {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String input;
		int count =1;
		while (!(input = in.readLine()).equals("0")){
			System.out.println("Case "+count+": "+input);
			count++;
		}
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String input; input int count =1; count 1 while (!(input = in.readLine()).equals("0")){
			System.out.println("Case "+count+": "+input);
			count++;
		} !(input = in.readLine()).equals("0") (input = in.readLine()).equals("0") (input = in.readLine()).equals (input = in.readLine()) input in.readLine() in.readLine in "0" {
			System.out.println("Case "+count+": "+input);
			count++;
		} System.out.println("Case "+count+": "+input) System.out.println System.out System System.out "Case "+count+": "+input ": " "Case "+count+": "+input "Case " count ": " input count++ count String[] args args
//Print Test Cases
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String input;
		int count =1;
		while (!(input = in.readLine()).equals("0")){
			System.out.println("Case "+count+": "+input);
			count++;
		}
	}
}