import java.util.Scanner;

public class Main {

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

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

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

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x;
        int i = 0;
        while(true){
            x = sc.nextInt();
            if ( x == 0 ) break;
            i = i + 1;
            System.out.println("Case " + i + ": " + x );
            
        }
	} main {
        Scanner sc = new Scanner(System.in);
        int x;
        int i = 0;
        while(true){
            x = sc.nextInt();
            if ( x == 0 ) break;
            i = i + 1;
            System.out.println("Case " + i + ": " + x );
            
        }
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x; x int i = 0; i 0 while(true){
            x = sc.nextInt();
            if ( x == 0 ) break;
            i = i + 1;
            System.out.println("Case " + i + ": " + x );
            
        } true {
            x = sc.nextInt();
            if ( x == 0 ) break;
            i = i + 1;
            System.out.println("Case " + i + ": " + x );
            
        } x = sc.nextInt() x sc.nextInt() sc.nextInt sc if ( x == 0 ) break; x == 0 x 0 break; i = i + 1 i i + 1 i 1 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 public class Main {

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

} public class Main {

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

} Main
import java.util.Scanner;

public class Main {

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

}
