import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		List<Integer> ArrayList = new ArrayList<Integer>();
		int lastAdd;
		int counter = 0;
		do {
			lastAdd = stdIn.nextInt();
			ArrayList.add(lastAdd);
			counter++;
			
		}while(lastAdd != 0);
		
		for(int i = 0; i < ArrayList.size()-1; i++) {
			System.out.println("Case " + (i+1) + ": " + ArrayList.get(i));
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		List<Integer> ArrayList = new ArrayList<Integer>();
		int lastAdd;
		int counter = 0;
		do {
			lastAdd = stdIn.nextInt();
			ArrayList.add(lastAdd);
			counter++;
			
		}while(lastAdd != 0);
		
		for(int i = 0; i < ArrayList.size()-1; i++) {
			System.out.println("Case " + (i+1) + ": " + ArrayList.get(i));
		}
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		List<Integer> ArrayList = new ArrayList<Integer>();
		int lastAdd;
		int counter = 0;
		do {
			lastAdd = stdIn.nextInt();
			ArrayList.add(lastAdd);
			counter++;
			
		}while(lastAdd != 0);
		
		for(int i = 0; i < ArrayList.size()-1; i++) {
			System.out.println("Case " + (i+1) + ": " + ArrayList.get(i));
		}
	} main {
		Scanner stdIn = new Scanner(System.in);
		List<Integer> ArrayList = new ArrayList<Integer>();
		int lastAdd;
		int counter = 0;
		do {
			lastAdd = stdIn.nextInt();
			ArrayList.add(lastAdd);
			counter++;
			
		}while(lastAdd != 0);
		
		for(int i = 0; i < ArrayList.size()-1; i++) {
			System.out.println("Case " + (i+1) + ": " + ArrayList.get(i));
		}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) List<Integer> ArrayList = new ArrayList<Integer>(); ArrayList new ArrayList<Integer>() int lastAdd; lastAdd int counter = 0; counter 0 do {
			lastAdd = stdIn.nextInt();
			ArrayList.add(lastAdd);
			counter++;
			
		}while(lastAdd != 0); lastAdd != 0 lastAdd 0 {
			lastAdd = stdIn.nextInt();
			ArrayList.add(lastAdd);
			counter++;
			
		} lastAdd = stdIn.nextInt() lastAdd stdIn.nextInt() stdIn.nextInt stdIn ArrayList.add(lastAdd) ArrayList.add ArrayList lastAdd counter++ counter for(int i = 0; i < ArrayList.size()-1; i++) {
			System.out.println("Case " + (i+1) + ": " + ArrayList.get(i));
		} int i = 0; int i = 0; i 0 i < ArrayList.size()-1 i ArrayList.size()-1 ArrayList.size() ArrayList.size ArrayList 1 i++ i++ i {
			System.out.println("Case " + (i+1) + ": " + ArrayList.get(i));
		} {
			System.out.println("Case " + (i+1) + ": " + ArrayList.get(i));
		} System.out.println("Case " + (i+1) + ": " + ArrayList.get(i)) System.out.println System.out System System.out "Case " + (i+1) + ": " + ArrayList.get(i) ": " "Case " + (i+1) + ": " + ArrayList.get(i) "Case " (i+1) i 1 ": " ArrayList.get(i) ArrayList.get ArrayList i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		List<Integer> ArrayList = new ArrayList<Integer>();
		int lastAdd;
		int counter = 0;
		do {
			lastAdd = stdIn.nextInt();
			ArrayList.add(lastAdd);
			counter++;
			
		}while(lastAdd != 0);
		
		for(int i = 0; i < ArrayList.size()-1; i++) {
			System.out.println("Case " + (i+1) + ": " + ArrayList.get(i));
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		List<Integer> ArrayList = new ArrayList<Integer>();
		int lastAdd;
		int counter = 0;
		do {
			lastAdd = stdIn.nextInt();
			ArrayList.add(lastAdd);
			counter++;
			
		}while(lastAdd != 0);
		
		for(int i = 0; i < ArrayList.size()-1; i++) {
			System.out.println("Case " + (i+1) + ": " + ArrayList.get(i));
		}
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		List<Integer> ArrayList = new ArrayList<Integer>();
		int lastAdd;
		int counter = 0;
		do {
			lastAdd = stdIn.nextInt();
			ArrayList.add(lastAdd);
			counter++;
			
		}while(lastAdd != 0);
		
		for(int i = 0; i < ArrayList.size()-1; i++) {
			System.out.println("Case " + (i+1) + ": " + ArrayList.get(i));
		}
	}
}