import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		while ( true ) {
			String inputText = scanner.nextLine();


			int x = Integer.parseInt( inputText );
			if ( x == 0) {
				break;
			}
			nums.add( x );
		}

		for ( int i = 0; i < nums.size(); i++ ) {
			System.out.println("Case " + (i + 1) + ": " + nums.get( i ) );
		}

		scanner.close();
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		while ( true ) {
			String inputText = scanner.nextLine();


			int x = Integer.parseInt( inputText );
			if ( x == 0) {
				break;
			}
			nums.add( x );
		}

		for ( int i = 0; i < nums.size(); i++ ) {
			System.out.println("Case " + (i + 1) + ": " + nums.get( i ) );
		}

		scanner.close();
	}
} Main public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		while ( true ) {
			String inputText = scanner.nextLine();


			int x = Integer.parseInt( inputText );
			if ( x == 0) {
				break;
			}
			nums.add( x );
		}

		for ( int i = 0; i < nums.size(); i++ ) {
			System.out.println("Case " + (i + 1) + ": " + nums.get( i ) );
		}

		scanner.close();
	} main {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		while ( true ) {
			String inputText = scanner.nextLine();


			int x = Integer.parseInt( inputText );
			if ( x == 0) {
				break;
			}
			nums.add( x );
		}

		for ( int i = 0; i < nums.size(); i++ ) {
			System.out.println("Case " + (i + 1) + ": " + nums.get( i ) );
		}

		scanner.close();
	} Scanner scanner = new Scanner( System.in ); scanner new Scanner( System.in ) ArrayList<Integer> nums = new ArrayList<Integer>(); nums new ArrayList<Integer>() while ( true ) {
			String inputText = scanner.nextLine();


			int x = Integer.parseInt( inputText );
			if ( x == 0) {
				break;
			}
			nums.add( x );
		} true {
			String inputText = scanner.nextLine();


			int x = Integer.parseInt( inputText );
			if ( x == 0) {
				break;
			}
			nums.add( x );
		} String inputText = scanner.nextLine(); inputText scanner.nextLine() scanner.nextLine scanner int x = Integer.parseInt( inputText ); x Integer.parseInt( inputText ) Integer.parseInt Integer inputText if ( x == 0) {
				break;
			} x == 0 x 0 {
				break;
			} break; nums.add( x ) nums.add nums x for ( int i = 0; i < nums.size(); i++ ) {
			System.out.println("Case " + (i + 1) + ": " + nums.get( i ) );
		} int i = 0; int i = 0; i 0 i < nums.size() i nums.size() nums.size nums i++ i++ i {
			System.out.println("Case " + (i + 1) + ": " + nums.get( i ) );
		} {
			System.out.println("Case " + (i + 1) + ": " + nums.get( i ) );
		} System.out.println("Case " + (i + 1) + ": " + nums.get( i ) ) System.out.println System.out System System.out "Case " + (i + 1) + ": " + nums.get( i ) ": " "Case " + (i + 1) + ": " + nums.get( i ) "Case " (i + 1) i 1 ": " nums.get( i ) nums.get nums i scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		while ( true ) {
			String inputText = scanner.nextLine();


			int x = Integer.parseInt( inputText );
			if ( x == 0) {
				break;
			}
			nums.add( x );
		}

		for ( int i = 0; i < nums.size(); i++ ) {
			System.out.println("Case " + (i + 1) + ": " + nums.get( i ) );
		}

		scanner.close();
	}
} public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		while ( true ) {
			String inputText = scanner.nextLine();


			int x = Integer.parseInt( inputText );
			if ( x == 0) {
				break;
			}
			nums.add( x );
		}

		for ( int i = 0; i < nums.size(); i++ ) {
			System.out.println("Case " + (i + 1) + ": " + nums.get( i ) );
		}

		scanner.close();
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		while ( true ) {
			String inputText = scanner.nextLine();


			int x = Integer.parseInt( inputText );
			if ( x == 0) {
				break;
			}
			nums.add( x );
		}

		for ( int i = 0; i < nums.size(); i++ ) {
			System.out.println("Case " + (i + 1) + ": " + nums.get( i ) );
		}

		scanner.close();
	}
}