import java.util.Scanner;
class Main {
	public static void main(String[] args) {
		Scanner kb = new Scanner( System.in);	
		int data;
		for( int i=1; ; i++ ) {
			data=kb.nextInt();
			if( 0 != data ) {
				System.out.println( "Case "+i+": "+data );
			} else {
				break;
			}
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner kb = new Scanner( System.in);	
		int data;
		for( int i=1; ; i++ ) {
			data=kb.nextInt();
			if( 0 != data ) {
				System.out.println( "Case "+i+": "+data );
			} else {
				break;
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner kb = new Scanner( System.in);	
		int data;
		for( int i=1; ; i++ ) {
			data=kb.nextInt();
			if( 0 != data ) {
				System.out.println( "Case "+i+": "+data );
			} else {
				break;
			}
		}
	} main {
		Scanner kb = new Scanner( System.in);	
		int data;
		for( int i=1; ; i++ ) {
			data=kb.nextInt();
			if( 0 != data ) {
				System.out.println( "Case "+i+": "+data );
			} else {
				break;
			}
		}
	} Scanner kb = new Scanner( System.in); kb new Scanner( System.in) int data; data for( int i=1; ; i++ ) {
			data=kb.nextInt();
			if( 0 != data ) {
				System.out.println( "Case "+i+": "+data );
			} else {
				break;
			}
		} int i=1; int i=1; i 1 i++ i++ i {
			data=kb.nextInt();
			if( 0 != data ) {
				System.out.println( "Case "+i+": "+data );
			} else {
				break;
			}
		} {
			data=kb.nextInt();
			if( 0 != data ) {
				System.out.println( "Case "+i+": "+data );
			} else {
				break;
			}
		} data=kb.nextInt() data kb.nextInt() kb.nextInt kb if( 0 != data ) {
				System.out.println( "Case "+i+": "+data );
			} else {
				break;
			} 0 != data 0 data {
				System.out.println( "Case "+i+": "+data );
			} System.out.println( "Case "+i+": "+data ) System.out.println System.out System System.out "Case "+i+": "+data ": " "Case "+i+": "+data "Case " i ": " data {
				break;
			} break; String[] args args
import java.util.Scanner;
class Main {
	public static void main(String[] args) {
		Scanner kb = new Scanner( System.in);	
		int data;
		for( int i=1; ; i++ ) {
			data=kb.nextInt();
			if( 0 != data ) {
				System.out.println( "Case "+i+": "+data );
			} else {
				break;
			}
		}
	}
}