import java.io.*;

class Main{
	public static void main (String[ ] args) throws Exception{
		BufferedReader br = new BufferedReader (new InputStreamReader (System.in));

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

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

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

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

class Main{
	public static void main (String[ ] args) throws Exception{
		BufferedReader br = new BufferedReader (new InputStreamReader (System.in));

		for(int i = 1;; i++)
		{
			int n = Integer.parseInt(br.readLine());
			if(0 == n)
			{
				break;
			}
			System.out.println("Case " + i + ": " + n);
		}
	}
}