import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

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

		int i = 1;
		while(sc.hasNextInt()){
			int value = sc.nextInt();
			if(value != 0){
				System.out.println("Case " + (i++) + ": " + value);
			}
			else{
				break;
			}
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while(sc.hasNextInt()){
			int value = sc.nextInt();
			if(value != 0){
				System.out.println("Case " + (i++) + ": " + value);
			}
			else{
				break;
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while(sc.hasNextInt()){
			int value = sc.nextInt();
			if(value != 0){
				System.out.println("Case " + (i++) + ": " + value);
			}
			else{
				break;
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = 1; i 1 while(sc.hasNextInt()){
			int value = sc.nextInt();
			if(value != 0){
				System.out.println("Case " + (i++) + ": " + value);
			}
			else{
				break;
			}
		} sc.hasNextInt() sc.hasNextInt sc {
			int value = sc.nextInt();
			if(value != 0){
				System.out.println("Case " + (i++) + ": " + value);
			}
			else{
				break;
			}
		} int value = sc.nextInt(); value sc.nextInt() sc.nextInt sc if(value != 0){
				System.out.println("Case " + (i++) + ": " + value);
			}
			else{
				break;
			} value != 0 value 0 {
				System.out.println("Case " + (i++) + ": " + value);
			} System.out.println("Case " + (i++) + ": " + value) System.out.println System.out System System.out "Case " + (i++) + ": " + value ": " "Case " + (i++) + ": " + value "Case " (i++) i ": " value {
				break;
			} break; String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while(sc.hasNextInt()){
			int value = sc.nextInt();
			if(value != 0){
				System.out.println("Case " + (i++) + ": " + value);
			}
			else{
				break;
			}
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while(sc.hasNextInt()){
			int value = sc.nextInt();
			if(value != 0){
				System.out.println("Case " + (i++) + ": " + value);
			}
			else{
				break;
			}
		}
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int i = 1;
		while(sc.hasNextInt()){
			int value = sc.nextInt();
			if(value != 0){
				System.out.println("Case " + (i++) + ": " + value);
			}
			else{
				break;
			}
		}
	}
}