		import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=0;
		int x = sc.nextInt();
		while(x!=0){
			n++;
			System.out.println("Case "+n+": "+x);
			x = sc.nextInt();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=0;
		int x = sc.nextInt();
		while(x!=0){
			n++;
			System.out.println("Case "+n+": "+x);
			x = sc.nextInt();
		}
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=0;
		int x = sc.nextInt();
		while(x!=0){
			n++;
			System.out.println("Case "+n+": "+x);
			x = sc.nextInt();
		}
	} main {
		Scanner sc=new Scanner(System.in);
		int n=0;
		int x = sc.nextInt();
		while(x!=0){
			n++;
			System.out.println("Case "+n+": "+x);
			x = sc.nextInt();
		}
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=0; n 0 int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc while(x!=0){
			n++;
			System.out.println("Case "+n+": "+x);
			x = sc.nextInt();
		} x!=0 x 0 {
			n++;
			System.out.println("Case "+n+": "+x);
			x = sc.nextInt();
		} n++ n System.out.println("Case "+n+": "+x) System.out.println System.out System System.out "Case "+n+": "+x ": " "Case "+n+": "+x "Case " n ": " x x = sc.nextInt() x sc.nextInt() sc.nextInt sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=0;
		int x = sc.nextInt();
		while(x!=0){
			n++;
			System.out.println("Case "+n+": "+x);
			x = sc.nextInt();
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=0;
		int x = sc.nextInt();
		while(x!=0){
			n++;
			System.out.println("Case "+n+": "+x);
			x = sc.nextInt();
		}
	}
} Main
		import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=0;
		int x = sc.nextInt();
		while(x!=0){
			n++;
			System.out.println("Case "+n+": "+x);
			x = sc.nextInt();
		}
	}
}