import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int i = 1;
		int x;

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

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

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

		while((x = Integer.parseInt(s = br.readLine())) != 0){
			System.out.println("Case " + i + ": " + x);
			i++;
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s; s int i = 1; i 1 int x; x while((x = Integer.parseInt(s = br.readLine())) != 0){
			System.out.println("Case " + i + ": " + x);
			i++;
		} (x = Integer.parseInt(s = br.readLine())) != 0 (x = Integer.parseInt(s = br.readLine())) x Integer.parseInt(s = br.readLine()) Integer.parseInt Integer s = br.readLine() s br.readLine() br.readLine br 0 {
			System.out.println("Case " + i + ": " + x);
			i++;
		} 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.*;

class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int i = 1;
		int x;

		while((x = Integer.parseInt(s = br.readLine())) != 0){
			System.out.println("Case " + i + ": " + x);
			i++;
		}
	}
}