import java.util.Scanner;

class Main{
	static public void main(String args[]){
		Scanner sc = new Scanner(System.in);
		/*StringBuilder:??????????????????????????±?????????*/
		StringBuilder sb = new StringBuilder();
		int idx = 0;
		int i = 0;

		while(true){
			idx = sc.nextInt();
			if(idx == 0)
				break;
			i++;
			/*append:????????????????????????*/
			sb.append("Case " + i + ":" + " " + idx + "\n");
		}
		System.out.print(sb);
	}
} import java.util.Scanner; Scanner java.util class Main{
	static public void main(String args[]){
		Scanner sc = new Scanner(System.in);
		/*StringBuilder:??????????????????????????±?????????*/
		StringBuilder sb = new StringBuilder();
		int idx = 0;
		int i = 0;

		while(true){
			idx = sc.nextInt();
			if(idx == 0)
				break;
			i++;
			/*append:????????????????????????*/
			sb.append("Case " + i + ":" + " " + idx + "\n");
		}
		System.out.print(sb);
	}
} Main static public void main(String args[]){
		Scanner sc = new Scanner(System.in);
		/*StringBuilder:??????????????????????????±?????????*/
		StringBuilder sb = new StringBuilder();
		int idx = 0;
		int i = 0;

		while(true){
			idx = sc.nextInt();
			if(idx == 0)
				break;
			i++;
			/*append:????????????????????????*/
			sb.append("Case " + i + ":" + " " + idx + "\n");
		}
		System.out.print(sb);
	} main {
		Scanner sc = new Scanner(System.in);
		/*StringBuilder:??????????????????????????±?????????*/
		StringBuilder sb = new StringBuilder();
		int idx = 0;
		int i = 0;

		while(true){
			idx = sc.nextInt();
			if(idx == 0)
				break;
			i++;
			/*append:????????????????????????*/
			sb.append("Case " + i + ":" + " " + idx + "\n");
		}
		System.out.print(sb);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int idx = 0; idx 0 int i = 0; i 0 while(true){
			idx = sc.nextInt();
			if(idx == 0)
				break;
			i++;
			/*append:????????????????????????*/
			sb.append("Case " + i + ":" + " " + idx + "\n");
		} true {
			idx = sc.nextInt();
			if(idx == 0)
				break;
			i++;
			/*append:????????????????????????*/
			sb.append("Case " + i + ":" + " " + idx + "\n");
		} idx = sc.nextInt() idx sc.nextInt() sc.nextInt sc if(idx == 0)
				break; idx == 0 idx 0 break; i++ i sb.append("Case " + i + ":" + " " + idx + "\n") sb.append sb "Case " + i + ":" + " " + idx + "\n" idx " " ":" "Case " + i + ":" + " " + idx + "\n" "Case " i ":" " " idx "\n" System.out.print(sb) System.out.print System.out System System.out sb String args[] args
import java.util.Scanner;

class Main{
	static public void main(String args[]){
		Scanner sc = new Scanner(System.in);
		/*StringBuilder:??????????????????????????±?????????*/
		StringBuilder sb = new StringBuilder();
		int idx = 0;
		int i = 0;

		while(true){
			idx = sc.nextInt();
			if(idx == 0)
				break;
			i++;
			/*append:????????????????????????*/
			sb.append("Case " + i + ":" + " " + idx + "\n");
		}
		System.out.print(sb);
	}
}