import java.util.Scanner;

class Main{
    public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int count = 0;

    	while(true){
    		count++;
    		int x = scan.nextInt();

    		if(x == 0){
    			break;
    		}

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

    	while(true){
    		count++;
    		int x = scan.nextInt();

    		if(x == 0){
    			break;
    		}

    		System.out.println("Case " + count + ": " + x);
    	}
    }
} Main public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int count = 0;

    	while(true){
    		count++;
    		int x = scan.nextInt();

    		if(x == 0){
    			break;
    		}

    		System.out.println("Case " + count + ": " + x);
    	}
    } main {
    	Scanner scan = new Scanner(System.in);
    	int count = 0;

    	while(true){
    		count++;
    		int x = scan.nextInt();

    		if(x == 0){
    			break;
    		}

    		System.out.println("Case " + count + ": " + x);
    	}
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int count = 0; count 0 while(true){
    		count++;
    		int x = scan.nextInt();

    		if(x == 0){
    			break;
    		}

    		System.out.println("Case " + count + ": " + x);
    	} true {
    		count++;
    		int x = scan.nextInt();

    		if(x == 0){
    			break;
    		}

    		System.out.println("Case " + count + ": " + x);
    	} count++ count int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan if(x == 0){
    			break;
    		} x == 0 x 0 {
    			break;
    		} break; System.out.println("Case " + count + ": " + x) System.out.println System.out System System.out "Case " + count + ": " + x ": " "Case " + count + ": " + x "Case " count ": " x String[] args args
import java.util.Scanner;

class Main{
    public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int count = 0;

    	while(true){
    		count++;
    		int x = scan.nextInt();

    		if(x == 0){
    			break;
    		}

    		System.out.println("Case " + count + ": " + x);
    	}
    }
}