import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException
	{
		int x = -1;
		int a[] = new int[10000];
		String s;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
		int i = 1;
		while(true) {
			s = br.readLine();
			x = Integer.parseInt(s);
			if(x == 0) break;
			else {
				System.out.println("Case "+i+": "+x);
				i++;
			}
		}
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException
	{
		int x = -1;
		int a[] = new int[10000];
		String s;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
		int i = 1;
		while(true) {
			s = br.readLine();
			x = Integer.parseInt(s);
			if(x == 0) break;
			else {
				System.out.println("Case "+i+": "+x);
				i++;
			}
		}
	}
} Main public static void main(String[] args) throws IOException
	{
		int x = -1;
		int a[] = new int[10000];
		String s;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
		int i = 1;
		while(true) {
			s = br.readLine();
			x = Integer.parseInt(s);
			if(x == 0) break;
			else {
				System.out.println("Case "+i+": "+x);
				i++;
			}
		}
	} main {
		int x = -1;
		int a[] = new int[10000];
		String s;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
		int i = 1;
		while(true) {
			s = br.readLine();
			x = Integer.parseInt(s);
			if(x == 0) break;
			else {
				System.out.println("Case "+i+": "+x);
				i++;
			}
		}
	} int x = -1; x -1 1 int a[] = new int[10000]; a new int[10000] 10000 String s; s BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int i = 1; i 1 while(true) {
			s = br.readLine();
			x = Integer.parseInt(s);
			if(x == 0) break;
			else {
				System.out.println("Case "+i+": "+x);
				i++;
			}
		} true {
			s = br.readLine();
			x = Integer.parseInt(s);
			if(x == 0) break;
			else {
				System.out.println("Case "+i+": "+x);
				i++;
			}
		} s = br.readLine() s br.readLine() br.readLine br x = Integer.parseInt(s) x Integer.parseInt(s) Integer.parseInt Integer s if(x == 0) break;
			else {
				System.out.println("Case "+i+": "+x);
				i++;
			} x == 0 x 0 break; {
				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 public class Main {
	public static void main(String[] args) throws IOException
	{
		int x = -1;
		int a[] = new int[10000];
		String s;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
		int i = 1;
		while(true) {
			s = br.readLine();
			x = Integer.parseInt(s);
			if(x == 0) break;
			else {
				System.out.println("Case "+i+": "+x);
				i++;
			}
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException
	{
		int x = -1;
		int a[] = new int[10000];
		String s;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
		int i = 1;
		while(true) {
			s = br.readLine();
			x = Integer.parseInt(s);
			if(x == 0) break;
			else {
				System.out.println("Case "+i+": "+x);
				i++;
			}
		}
	}
} Main
import java.io.*;

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