/* ITP1_9-B */
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main {
	public static void main(String[] args) throws IOException {
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		int count = 1;
		while(!str.equals("0")) {
			System.out.println( "Case " + count + ": " + str );
			count++;
			str = br.readLine();
		}
	}
} import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] args) throws IOException {
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		int count = 1;
		while(!str.equals("0")) {
			System.out.println( "Case " + count + ": " + str );
			count++;
			str = br.readLine();
		}
	}
} Main public static void main(String[] args) throws IOException {
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		int count = 1;
		while(!str.equals("0")) {
			System.out.println( "Case " + count + ": " + str );
			count++;
			str = br.readLine();
		}
	} main {
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		int count = 1;
		while(!str.equals("0")) {
			System.out.println( "Case " + count + ": " + str );
			count++;
			str = br.readLine();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int count = 1; count 1 while(!str.equals("0")) {
			System.out.println( "Case " + count + ": " + str );
			count++;
			str = br.readLine();
		} !str.equals("0") str.equals("0") str.equals str "0" {
			System.out.println( "Case " + count + ": " + str );
			count++;
			str = br.readLine();
		} System.out.println( "Case " + count + ": " + str ) System.out.println System.out System System.out "Case " + count + ": " + str ": " "Case " + count + ": " + str "Case " count ": " str count++ count str = br.readLine() str br.readLine() br.readLine br String[] args args
/* ITP1_9-B */
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main {
	public static void main(String[] args) throws IOException {
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		int count = 1;
		while(!str.equals("0")) {
			System.out.println( "Case " + count + ": " + str );
			count++;
			str = br.readLine();
		}
	}
}