import java.io.*;
import java.util.Arrays;
class Main{
	public static void main(String[] args) throws IOException {
		int i;
		int n;
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for(i=1; ;i++){
			str = in.readLine();
			n = Integer.parseInt(str);
			if(n==0) break;
			System.out.println("Case "+(i)+": "+n);
		}
	}
} import java.io.*; io.* java import java.util.Arrays; Arrays java.util class Main{
	public static void main(String[] args) throws IOException {
		int i;
		int n;
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for(i=1; ;i++){
			str = in.readLine();
			n = Integer.parseInt(str);
			if(n==0) break;
			System.out.println("Case "+(i)+": "+n);
		}
	}
} Main public static void main(String[] args) throws IOException {
		int i;
		int n;
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for(i=1; ;i++){
			str = in.readLine();
			n = Integer.parseInt(str);
			if(n==0) break;
			System.out.println("Case "+(i)+": "+n);
		}
	} main {
		int i;
		int n;
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for(i=1; ;i++){
			str = in.readLine();
			n = Integer.parseInt(str);
			if(n==0) break;
			System.out.println("Case "+(i)+": "+n);
		}
	} int i; i int n; n String str; str BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) for(i=1; ;i++){
			str = in.readLine();
			n = Integer.parseInt(str);
			if(n==0) break;
			System.out.println("Case "+(i)+": "+n);
		} i=1; i=1 i 1 i++ i++ i {
			str = in.readLine();
			n = Integer.parseInt(str);
			if(n==0) break;
			System.out.println("Case "+(i)+": "+n);
		} {
			str = in.readLine();
			n = Integer.parseInt(str);
			if(n==0) break;
			System.out.println("Case "+(i)+": "+n);
		} str = in.readLine() str in.readLine() in.readLine in n = Integer.parseInt(str) n Integer.parseInt(str) Integer.parseInt Integer str if(n==0) break; n==0 n 0 break; System.out.println("Case "+(i)+": "+n) System.out.println System.out System System.out "Case "+(i)+": "+n ": " "Case "+(i)+": "+n "Case " (i) ": " n String[] args args
import java.io.*;
import java.util.Arrays;
class Main{
	public static void main(String[] args) throws IOException {
		int i;
		int n;
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for(i=1; ;i++){
			str = in.readLine();
			n = Integer.parseInt(str);
			if(n==0) break;
			System.out.println("Case "+(i)+": "+n);
		}
	}
}