import java.util.Scanner;
class Main {
    public void kami() {
           Scanner sc = new Scanner(System.in);
		int i = 1;
		int x = sc.nextInt();
		while(x != 0){
			System.out.println("Case " + i + ": " + x);
			i++;
			x = sc.nextInt();
		}

    }
    public static void main(String[] args) {
    new Main().kami();
     	}

} import java.util.Scanner; Scanner java.util class Main {
    public void kami() {
           Scanner sc = new Scanner(System.in);
		int i = 1;
		int x = sc.nextInt();
		while(x != 0){
			System.out.println("Case " + i + ": " + x);
			i++;
			x = sc.nextInt();
		}

    }
    public static void main(String[] args) {
    new Main().kami();
     	}

} Main public void kami() {
           Scanner sc = new Scanner(System.in);
		int i = 1;
		int x = sc.nextInt();
		while(x != 0){
			System.out.println("Case " + i + ": " + x);
			i++;
			x = sc.nextInt();
		}

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

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

    }
    public static void main(String[] args) {
    new Main().kami();
     	}

}