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


public class Main {
	public static void main(String[] args) {
		ArrayList<Integer> caseNum = new ArrayList<Integer>();
		int num;
		Scanner sc = new Scanner(System.in);

		//??\??????????????????0?????§??°?????????
		while (sc.hasNext()) {
			num=sc.nextInt();

			//0??\??????????????????
			if(num==0){
				break;
			}
			//??\???????????´??°?????????????????????
			caseNum.add(num);
		}
		//??\???????????´??°?????¨???
		for (int i = 0; i < caseNum.size(); i++) {
			System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue());
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		ArrayList<Integer> caseNum = new ArrayList<Integer>();
		int num;
		Scanner sc = new Scanner(System.in);

		//??\??????????????????0?????§??°?????????
		while (sc.hasNext()) {
			num=sc.nextInt();

			//0??\??????????????????
			if(num==0){
				break;
			}
			//??\???????????´??°?????????????????????
			caseNum.add(num);
		}
		//??\???????????´??°?????¨???
		for (int i = 0; i < caseNum.size(); i++) {
			System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue());
		}
	}
} Main public static void main(String[] args) {
		ArrayList<Integer> caseNum = new ArrayList<Integer>();
		int num;
		Scanner sc = new Scanner(System.in);

		//??\??????????????????0?????§??°?????????
		while (sc.hasNext()) {
			num=sc.nextInt();

			//0??\??????????????????
			if(num==0){
				break;
			}
			//??\???????????´??°?????????????????????
			caseNum.add(num);
		}
		//??\???????????´??°?????¨???
		for (int i = 0; i < caseNum.size(); i++) {
			System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue());
		}
	} main {
		ArrayList<Integer> caseNum = new ArrayList<Integer>();
		int num;
		Scanner sc = new Scanner(System.in);

		//??\??????????????????0?????§??°?????????
		while (sc.hasNext()) {
			num=sc.nextInt();

			//0??\??????????????????
			if(num==0){
				break;
			}
			//??\???????????´??°?????????????????????
			caseNum.add(num);
		}
		//??\???????????´??°?????¨???
		for (int i = 0; i < caseNum.size(); i++) {
			System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue());
		}
	} ArrayList<Integer> caseNum = new ArrayList<Integer>(); caseNum new ArrayList<Integer>() int num; num Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNext()) {
			num=sc.nextInt();

			//0??\??????????????????
			if(num==0){
				break;
			}
			//??\???????????´??°?????????????????????
			caseNum.add(num);
		} sc.hasNext() sc.hasNext sc {
			num=sc.nextInt();

			//0??\??????????????????
			if(num==0){
				break;
			}
			//??\???????????´??°?????????????????????
			caseNum.add(num);
		} num=sc.nextInt() num sc.nextInt() sc.nextInt sc if(num==0){
				break;
			} num==0 num 0 {
				break;
			} break; caseNum.add(num) caseNum.add caseNum num for (int i = 0; i < caseNum.size(); i++) {
			System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue());
		} int i = 0; int i = 0; i 0 i < caseNum.size() i caseNum.size() caseNum.size caseNum i++ i++ i {
			System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue());
		} {
			System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue());
		} System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue()) System.out.println System.out System System.out "Case "+(i+1)+": "+caseNum.get(i).intValue() ": " "Case "+(i+1)+": "+caseNum.get(i).intValue() "Case " (i+1) i 1 ": " caseNum.get(i).intValue() caseNum.get(i).intValue caseNum.get(i) caseNum.get caseNum i String[] args args public class Main {
	public static void main(String[] args) {
		ArrayList<Integer> caseNum = new ArrayList<Integer>();
		int num;
		Scanner sc = new Scanner(System.in);

		//??\??????????????????0?????§??°?????????
		while (sc.hasNext()) {
			num=sc.nextInt();

			//0??\??????????????????
			if(num==0){
				break;
			}
			//??\???????????´??°?????????????????????
			caseNum.add(num);
		}
		//??\???????????´??°?????¨???
		for (int i = 0; i < caseNum.size(); i++) {
			System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue());
		}
	}
} public class Main {
	public static void main(String[] args) {
		ArrayList<Integer> caseNum = new ArrayList<Integer>();
		int num;
		Scanner sc = new Scanner(System.in);

		//??\??????????????????0?????§??°?????????
		while (sc.hasNext()) {
			num=sc.nextInt();

			//0??\??????????????????
			if(num==0){
				break;
			}
			//??\???????????´??°?????????????????????
			caseNum.add(num);
		}
		//??\???????????´??°?????¨???
		for (int i = 0; i < caseNum.size(); i++) {
			System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue());
		}
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		ArrayList<Integer> caseNum = new ArrayList<Integer>();
		int num;
		Scanner sc = new Scanner(System.in);

		//??\??????????????????0?????§??°?????????
		while (sc.hasNext()) {
			num=sc.nextInt();

			//0??\??????????????????
			if(num==0){
				break;
			}
			//??\???????????´??°?????????????????????
			caseNum.add(num);
		}
		//??\???????????´??°?????¨???
		for (int i = 0; i < caseNum.size(); i++) {
			System.out.println("Case "+(i+1)+": "+caseNum.get(i).intValue());
		}
	}
}