import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {

	public static void main(String[] args) throws IOException{
		int a = 0;
		int n = 10000; //?????§????????????????????°
		int j = 0;
		ArrayList<Integer> parse = new ArrayList<Integer>(); // int??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(j != n){
			a = Integer.parseInt(br.readLine());
			if(a == 0){
				break;
			}
			parse.add(a);
			++j;
		}

		for(int i = 1; i <= parse.size(); ++i){
		System.out.println("Case " + (i) + ": " + parse.get(i-1));
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util public class Main {

	public static void main(String[] args) throws IOException{
		int a = 0;
		int n = 10000; //?????§????????????????????°
		int j = 0;
		ArrayList<Integer> parse = new ArrayList<Integer>(); // int??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(j != n){
			a = Integer.parseInt(br.readLine());
			if(a == 0){
				break;
			}
			parse.add(a);
			++j;
		}

		for(int i = 1; i <= parse.size(); ++i){
		System.out.println("Case " + (i) + ": " + parse.get(i-1));
		}
	}
} Main public static void main(String[] args) throws IOException{
		int a = 0;
		int n = 10000; //?????§????????????????????°
		int j = 0;
		ArrayList<Integer> parse = new ArrayList<Integer>(); // int??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(j != n){
			a = Integer.parseInt(br.readLine());
			if(a == 0){
				break;
			}
			parse.add(a);
			++j;
		}

		for(int i = 1; i <= parse.size(); ++i){
		System.out.println("Case " + (i) + ": " + parse.get(i-1));
		}
	} main {
		int a = 0;
		int n = 10000; //?????§????????????????????°
		int j = 0;
		ArrayList<Integer> parse = new ArrayList<Integer>(); // int??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(j != n){
			a = Integer.parseInt(br.readLine());
			if(a == 0){
				break;
			}
			parse.add(a);
			++j;
		}

		for(int i = 1; i <= parse.size(); ++i){
		System.out.println("Case " + (i) + ": " + parse.get(i-1));
		}
	} int a = 0; a 0 int n = 10000; n 10000 int j = 0; j 0 ArrayList<Integer> parse = new ArrayList<Integer>(); parse new ArrayList<Integer>() BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) while(j != n){
			a = Integer.parseInt(br.readLine());
			if(a == 0){
				break;
			}
			parse.add(a);
			++j;
		} j != n j n {
			a = Integer.parseInt(br.readLine());
			if(a == 0){
				break;
			}
			parse.add(a);
			++j;
		} a = Integer.parseInt(br.readLine()) a Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(a == 0){
				break;
			} a == 0 a 0 {
				break;
			} break; parse.add(a) parse.add parse a ++j j for(int i = 1; i <= parse.size(); ++i){
		System.out.println("Case " + (i) + ": " + parse.get(i-1));
		} int i = 1; int i = 1; i 1 i <= parse.size() i parse.size() parse.size parse ++i ++i i {
		System.out.println("Case " + (i) + ": " + parse.get(i-1));
		} {
		System.out.println("Case " + (i) + ": " + parse.get(i-1));
		} System.out.println("Case " + (i) + ": " + parse.get(i-1)) System.out.println System.out System System.out "Case " + (i) + ": " + parse.get(i-1) ": " "Case " + (i) + ": " + parse.get(i-1) "Case " (i) ": " parse.get(i-1) parse.get parse i-1 i 1 String[] args args public class Main {

	public static void main(String[] args) throws IOException{
		int a = 0;
		int n = 10000; //?????§????????????????????°
		int j = 0;
		ArrayList<Integer> parse = new ArrayList<Integer>(); // int??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(j != n){
			a = Integer.parseInt(br.readLine());
			if(a == 0){
				break;
			}
			parse.add(a);
			++j;
		}

		for(int i = 1; i <= parse.size(); ++i){
		System.out.println("Case " + (i) + ": " + parse.get(i-1));
		}
	}
} public class Main {

	public static void main(String[] args) throws IOException{
		int a = 0;
		int n = 10000; //?????§????????????????????°
		int j = 0;
		ArrayList<Integer> parse = new ArrayList<Integer>(); // int??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(j != n){
			a = Integer.parseInt(br.readLine());
			if(a == 0){
				break;
			}
			parse.add(a);
			++j;
		}

		for(int i = 1; i <= parse.size(); ++i){
		System.out.println("Case " + (i) + ": " + parse.get(i-1));
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {

	public static void main(String[] args) throws IOException{
		int a = 0;
		int n = 10000; //?????§????????????????????°
		int j = 0;
		ArrayList<Integer> parse = new ArrayList<Integer>(); // int??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(j != n){
			a = Integer.parseInt(br.readLine());
			if(a == 0){
				break;
			}
			parse.add(a);
			++j;
		}

		for(int i = 1; i <= parse.size(); ++i){
		System.out.println("Case " + (i) + ": " + parse.get(i-1));
		}
	}
}