import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int num[] = new int[10000];
		int cnt = 0, input;
		
		while(true){
			if((input = sc.nextInt()) == 0)
				break;
			num[cnt] = input;
			cnt ++;
		}
		
		for(int i = 0; i < cnt; i++)
			System.out.println("Case " + (i+1) + ": " + num[i]);
	}
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int num[] = new int[10000];
		int cnt = 0, input;
		
		while(true){
			if((input = sc.nextInt()) == 0)
				break;
			num[cnt] = input;
			cnt ++;
		}
		
		for(int i = 0; i < cnt; i++)
			System.out.println("Case " + (i+1) + ": " + num[i]);
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int num[] = new int[10000];
		int cnt = 0, input;
		
		while(true){
			if((input = sc.nextInt()) == 0)
				break;
			num[cnt] = input;
			cnt ++;
		}
		
		for(int i = 0; i < cnt; i++)
			System.out.println("Case " + (i+1) + ": " + num[i]);
	} main {
		Scanner sc = new Scanner(System.in);
		int num[] = new int[10000];
		int cnt = 0, input;
		
		while(true){
			if((input = sc.nextInt()) == 0)
				break;
			num[cnt] = input;
			cnt ++;
		}
		
		for(int i = 0; i < cnt; i++)
			System.out.println("Case " + (i+1) + ": " + num[i]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num[] = new int[10000]; num new int[10000] 10000 int cnt = 0 cnt 0 input; input while(true){
			if((input = sc.nextInt()) == 0)
				break;
			num[cnt] = input;
			cnt ++;
		} true {
			if((input = sc.nextInt()) == 0)
				break;
			num[cnt] = input;
			cnt ++;
		} if((input = sc.nextInt()) == 0)
				break; (input = sc.nextInt()) == 0 (input = sc.nextInt()) input sc.nextInt() sc.nextInt sc 0 break; num[cnt] = input num[cnt] num cnt input cnt ++ cnt for(int i = 0; i < cnt; i++)
			System.out.println("Case " + (i+1) + ": " + num[i]); int i = 0; int i = 0; i 0 i < cnt i cnt i++ i++ i System.out.println("Case " + (i+1) + ": " + num[i]); System.out.println("Case " + (i+1) + ": " + num[i]) System.out.println System.out System System.out "Case " + (i+1) + ": " + num[i] ": " "Case " + (i+1) + ": " + num[i] "Case " (i+1) i 1 ": " num[i] num i String args[] args
import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int num[] = new int[10000];
		int cnt = 0, input;
		
		while(true){
			if((input = sc.nextInt()) == 0)
				break;
			num[cnt] = input;
			cnt ++;
		}
		
		for(int i = 0; i < cnt; i++)
			System.out.println("Case " + (i+1) + ": " + num[i]);
	}
}