import java.util.Scanner;
import java.util.ArrayList;

class Main {

	public static void main(String[] args) {
	
		ArrayList<Integer> x = new ArrayList<Integer>();
		int y = 1;
		int i;
		Scanner sc = new Scanner(System.in);
		
		while(true){
			int temp = sc.nextInt();
			if(temp == 0)
				break;
			x.add(temp);
		}
			
		for(i = 0; i < x.size(); i++){	
			
			int val = x.get(i);
			
			System.out.println("Case " + y + ": " + val);
			y++;
		}
		

	}

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

	public static void main(String[] args) {
	
		ArrayList<Integer> x = new ArrayList<Integer>();
		int y = 1;
		int i;
		Scanner sc = new Scanner(System.in);
		
		while(true){
			int temp = sc.nextInt();
			if(temp == 0)
				break;
			x.add(temp);
		}
			
		for(i = 0; i < x.size(); i++){	
			
			int val = x.get(i);
			
			System.out.println("Case " + y + ": " + val);
			y++;
		}
		

	}

} Main public static void main(String[] args) {
	
		ArrayList<Integer> x = new ArrayList<Integer>();
		int y = 1;
		int i;
		Scanner sc = new Scanner(System.in);
		
		while(true){
			int temp = sc.nextInt();
			if(temp == 0)
				break;
			x.add(temp);
		}
			
		for(i = 0; i < x.size(); i++){	
			
			int val = x.get(i);
			
			System.out.println("Case " + y + ": " + val);
			y++;
		}
		

	} main {
	
		ArrayList<Integer> x = new ArrayList<Integer>();
		int y = 1;
		int i;
		Scanner sc = new Scanner(System.in);
		
		while(true){
			int temp = sc.nextInt();
			if(temp == 0)
				break;
			x.add(temp);
		}
			
		for(i = 0; i < x.size(); i++){	
			
			int val = x.get(i);
			
			System.out.println("Case " + y + ": " + val);
			y++;
		}
		

	} ArrayList<Integer> x = new ArrayList<Integer>(); x new ArrayList<Integer>() int y = 1; y 1 int i; i Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(true){
			int temp = sc.nextInt();
			if(temp == 0)
				break;
			x.add(temp);
		} true {
			int temp = sc.nextInt();
			if(temp == 0)
				break;
			x.add(temp);
		} int temp = sc.nextInt(); temp sc.nextInt() sc.nextInt sc if(temp == 0)
				break; temp == 0 temp 0 break; x.add(temp) x.add x temp for(i = 0; i < x.size(); i++){	
			
			int val = x.get(i);
			
			System.out.println("Case " + y + ": " + val);
			y++;
		} i = 0; i = 0 i 0 i < x.size() i x.size() x.size x i++ i++ i {	
			
			int val = x.get(i);
			
			System.out.println("Case " + y + ": " + val);
			y++;
		} {	
			
			int val = x.get(i);
			
			System.out.println("Case " + y + ": " + val);
			y++;
		} int val = x.get(i); val x.get(i) x.get x i System.out.println("Case " + y + ": " + val) System.out.println System.out System System.out "Case " + y + ": " + val ": " "Case " + y + ": " + val "Case " y ": " val y++ y String[] args args
import java.util.Scanner;
import java.util.ArrayList;

class Main {

	public static void main(String[] args) {
	
		ArrayList<Integer> x = new ArrayList<Integer>();
		int y = 1;
		int i;
		Scanner sc = new Scanner(System.in);
		
		while(true){
			int temp = sc.nextInt();
			if(temp == 0)
				break;
			x.add(temp);
		}
			
		for(i = 0; i < x.size(); i++){	
			
			int val = x.get(i);
			
			System.out.println("Case " + y + ": " + val);
			y++;
		}
		

	}

}