import 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>0; i++)
		{
			String str = br.readLine();
			int num = Integer.parseInt(str);
			if(num==0)
				break;
			System.out.println("Case "+ i + ": " + num);
		}

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

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

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

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) for(int i=1; i>0; i++)
		{
			String str = br.readLine();
			int num = Integer.parseInt(str);
			if(num==0)
				break;
			System.out.println("Case "+ i + ": " + num);
		} int i=1; int i=1; i 1 i>0 i 0 i++ i++ i {
			String str = br.readLine();
			int num = Integer.parseInt(str);
			if(num==0)
				break;
			System.out.println("Case "+ i + ": " + num);
		} {
			String str = br.readLine();
			int num = Integer.parseInt(str);
			if(num==0)
				break;
			System.out.println("Case "+ i + ": " + num);
		} String str = br.readLine(); str br.readLine() br.readLine br int num = Integer.parseInt(str); num Integer.parseInt(str) Integer.parseInt Integer str if(num==0)
				break; num==0 num 0 break; System.out.println("Case "+ i + ": " + num) System.out.println System.out System System.out "Case "+ i + ": " + num ": " "Case "+ i + ": " + num "Case " i ": " num String[] args args
import 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>0; i++)
		{
			String str = br.readLine();
			int num = Integer.parseInt(str);
			if(num==0)
				break;
			System.out.println("Case "+ i + ": " + num);
		}

	}
}