import java.util.*;

class Main {

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

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int x,i=0;
		while(true){
			i++;
			x = in.nextInt();
			if(x == 0) break;
			System.out.println("Case " + i + ": " + x);
		}
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int x,i=0;
		while(true){
			i++;
			x = in.nextInt();
			if(x == 0) break;
			System.out.println("Case " + i + ": " + x);
		}
	} main {
		Scanner in = new Scanner(System.in);
		int x,i=0;
		while(true){
			i++;
			x = in.nextInt();
			if(x == 0) break;
			System.out.println("Case " + i + ": " + x);
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int x x i=0; i 0 while(true){
			i++;
			x = in.nextInt();
			if(x == 0) break;
			System.out.println("Case " + i + ": " + x);
		} true {
			i++;
			x = in.nextInt();
			if(x == 0) break;
			System.out.println("Case " + i + ": " + x);
		} i++ i x = in.nextInt() x in.nextInt() in.nextInt in if(x == 0) break; x == 0 x 0 break; System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x String[] args args
import java.util.*;

class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int x,i=0;
		while(true){
			i++;
			x = in.nextInt();
			if(x == 0) break;
			System.out.println("Case " + i + ": " + x);
		}
	}
}