import java.util.Scanner;

public class Main{
	public static void main(String args[]){

		
		Scanner sc = new Scanner(System.in);
		int intX = -1;
		int i = 0;

		while(intX != 0){
			intX = sc.nextInt();

			if(intX == 0 ){
				break;
			}

			i++;

			System.out.println("Case " + i + ": " + intX);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String args[]){

		
		Scanner sc = new Scanner(System.in);
		int intX = -1;
		int i = 0;

		while(intX != 0){
			intX = sc.nextInt();

			if(intX == 0 ){
				break;
			}

			i++;

			System.out.println("Case " + i + ": " + intX);
		}
	}
} Main public static void main(String args[]){

		
		Scanner sc = new Scanner(System.in);
		int intX = -1;
		int i = 0;

		while(intX != 0){
			intX = sc.nextInt();

			if(intX == 0 ){
				break;
			}

			i++;

			System.out.println("Case " + i + ": " + intX);
		}
	} main {

		
		Scanner sc = new Scanner(System.in);
		int intX = -1;
		int i = 0;

		while(intX != 0){
			intX = sc.nextInt();

			if(intX == 0 ){
				break;
			}

			i++;

			System.out.println("Case " + i + ": " + intX);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int intX = -1; intX -1 1 int i = 0; i 0 while(intX != 0){
			intX = sc.nextInt();

			if(intX == 0 ){
				break;
			}

			i++;

			System.out.println("Case " + i + ": " + intX);
		} intX != 0 intX 0 {
			intX = sc.nextInt();

			if(intX == 0 ){
				break;
			}

			i++;

			System.out.println("Case " + i + ": " + intX);
		} intX = sc.nextInt() intX sc.nextInt() sc.nextInt sc if(intX == 0 ){
				break;
			} intX == 0 intX 0 {
				break;
			} break; i++ i System.out.println("Case " + i + ": " + intX) System.out.println System.out System System.out "Case " + i + ": " + intX ": " "Case " + i + ": " + intX "Case " i ": " intX String args[] args public class Main{
	public static void main(String args[]){

		
		Scanner sc = new Scanner(System.in);
		int intX = -1;
		int i = 0;

		while(intX != 0){
			intX = sc.nextInt();

			if(intX == 0 ){
				break;
			}

			i++;

			System.out.println("Case " + i + ": " + intX);
		}
	}
} public class Main{
	public static void main(String args[]){

		
		Scanner sc = new Scanner(System.in);
		int intX = -1;
		int i = 0;

		while(intX != 0){
			intX = sc.nextInt();

			if(intX == 0 ){
				break;
			}

			i++;

			System.out.println("Case " + i + ": " + intX);
		}
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String args[]){

		
		Scanner sc = new Scanner(System.in);
		int intX = -1;
		int i = 0;

		while(intX != 0){
			intX = sc.nextInt();

			if(intX == 0 ){
				break;
			}

			i++;

			System.out.println("Case " + i + ": " + intX);
		}
	}
}