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

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		int intTemp;
		while(scan.hasNext()){
			intTemp = scan.nextInt();
			if(intTemp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			}
		}
		if(list.size() != 0){
			for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			}
		}
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		int intTemp;
		while(scan.hasNext()){
			intTemp = scan.nextInt();
			if(intTemp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			}
		}
		if(list.size() != 0){
			for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			}
		}
	}

} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		int intTemp;
		while(scan.hasNext()){
			intTemp = scan.nextInt();
			if(intTemp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			}
		}
		if(list.size() != 0){
			for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		int intTemp;
		while(scan.hasNext()){
			intTemp = scan.nextInt();
			if(intTemp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			}
		}
		if(list.size() != 0){
			for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() int intTemp; intTemp while(scan.hasNext()){
			intTemp = scan.nextInt();
			if(intTemp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			}
		} scan.hasNext() scan.hasNext scan {
			intTemp = scan.nextInt();
			if(intTemp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			}
		} intTemp = scan.nextInt() intTemp scan.nextInt() scan.nextInt scan if(intTemp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			} intTemp == 0 intTemp 0 {
				scan.close();
				break;
			} scan.close() scan.close scan break; {
				list.add(intTemp);
			} list.add(intTemp) list.add list intTemp if(list.size() != 0){
			for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			}
		} list.size() != 0 list.size() list.size list 0 {
			for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			}
		} for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			} int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			} {
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			} System.out.println("Case " + (i + 1) + ": " + list.get(i)) System.out.println System.out System System.out "Case " + (i + 1) + ": " + list.get(i) ": " "Case " + (i + 1) + ": " + list.get(i) "Case " (i + 1) i 1 ": " list.get(i) list.get list i String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		int intTemp;
		while(scan.hasNext()){
			intTemp = scan.nextInt();
			if(intTemp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			}
		}
		if(list.size() != 0){
			for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			}
		}
	}

} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		int intTemp;
		while(scan.hasNext()){
			intTemp = scan.nextInt();
			if(intTemp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			}
		}
		if(list.size() != 0){
			for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			}
		}
	}

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

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		int intTemp;
		while(scan.hasNext()){
			intTemp = scan.nextInt();
			if(intTemp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			}
		}
		if(list.size() != 0){
			for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			}
		}
	}

}