import java.util.Scanner;

class Main {

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

} import java.util.Scanner; Scanner java.util class Main {

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

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

class Main {

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

}