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

public class Main {
	public static void main(String[] args) {
		int x, i = 0, j;
		ArrayList<Integer> t = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(i < 10000){
			x = sc.nextInt();
			if(x == 0)
				break;
			t.add(new Integer(x));
			i++;
		}
		j = i;
		for(i = 1; i - 1 != j; i++){
			System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1)));
		}
		
	}
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util public class Main {
	public static void main(String[] args) {
		int x, i = 0, j;
		ArrayList<Integer> t = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(i < 10000){
			x = sc.nextInt();
			if(x == 0)
				break;
			t.add(new Integer(x));
			i++;
		}
		j = i;
		for(i = 1; i - 1 != j; i++){
			System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1)));
		}
		
	}
} Main public static void main(String[] args) {
		int x, i = 0, j;
		ArrayList<Integer> t = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(i < 10000){
			x = sc.nextInt();
			if(x == 0)
				break;
			t.add(new Integer(x));
			i++;
		}
		j = i;
		for(i = 1; i - 1 != j; i++){
			System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1)));
		}
		
	} main {
		int x, i = 0, j;
		ArrayList<Integer> t = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(i < 10000){
			x = sc.nextInt();
			if(x == 0)
				break;
			t.add(new Integer(x));
			i++;
		}
		j = i;
		for(i = 1; i - 1 != j; i++){
			System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1)));
		}
		
	} int x x i = 0 i 0 j; j ArrayList<Integer> t = new ArrayList<Integer>(); t new ArrayList<Integer>() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(i < 10000){
			x = sc.nextInt();
			if(x == 0)
				break;
			t.add(new Integer(x));
			i++;
		} i < 10000 i 10000 {
			x = sc.nextInt();
			if(x == 0)
				break;
			t.add(new Integer(x));
			i++;
		} x = sc.nextInt() x sc.nextInt() sc.nextInt sc if(x == 0)
				break; x == 0 x 0 break; t.add(new Integer(x)) t.add t new Integer(x) i++ i j = i j i for(i = 1; i - 1 != j; i++){
			System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1)));
		} i = 1; i = 1 i 1 i - 1 != j i - 1 i 1 j i++ i++ i {
			System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1)));
		} {
			System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1)));
		} System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1))) System.out.println System.out System System.out "Case " + i + ":" + " " + t.get(new Integer(i - 1)) " " ":" "Case " + i + ":" + " " + t.get(new Integer(i - 1)) "Case " i ":" " " t.get(new Integer(i - 1)) t.get t new Integer(i - 1) String[] args args public class Main {
	public static void main(String[] args) {
		int x, i = 0, j;
		ArrayList<Integer> t = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(i < 10000){
			x = sc.nextInt();
			if(x == 0)
				break;
			t.add(new Integer(x));
			i++;
		}
		j = i;
		for(i = 1; i - 1 != j; i++){
			System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1)));
		}
		
	}
} public class Main {
	public static void main(String[] args) {
		int x, i = 0, j;
		ArrayList<Integer> t = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(i < 10000){
			x = sc.nextInt();
			if(x == 0)
				break;
			t.add(new Integer(x));
			i++;
		}
		j = i;
		for(i = 1; i - 1 != j; i++){
			System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1)));
		}
		
	}
} Main

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

public class Main {
	public static void main(String[] args) {
		int x, i = 0, j;
		ArrayList<Integer> t = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(i < 10000){
			x = sc.nextInt();
			if(x == 0)
				break;
			t.add(new Integer(x));
			i++;
		}
		j = i;
		for(i = 1; i - 1 != j; i++){
			System.out.println("Case " + i + ":" + " " + t.get(new Integer(i - 1)));
		}
		
	}
}