import java.io.*;
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ArrayList<Integer> cases = new ArrayList<Integer>();
		int count = 0;
		String line;
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		try {
			while (true) {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			}
			for (int i = 0; i < cases.size(); i++) {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ArrayList<Integer> cases = new ArrayList<Integer>();
		int count = 0;
		String line;
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		try {
			while (true) {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			}
			for (int i = 0; i < cases.size(); i++) {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		ArrayList<Integer> cases = new ArrayList<Integer>();
		int count = 0;
		String line;
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		try {
			while (true) {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			}
			for (int i = 0; i < cases.size(); i++) {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	} main {
		// TODO Auto-generated method stub
		ArrayList<Integer> cases = new ArrayList<Integer>();
		int count = 0;
		String line;
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		try {
			while (true) {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			}
			for (int i = 0; i < cases.size(); i++) {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	} ArrayList<Integer> cases = new ArrayList<Integer>(); cases new ArrayList<Integer>() int count = 0; count 0 String line; line BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) try {
			while (true) {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			}
			for (int i = 0; i < cases.size(); i++) {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			}
		} catch (IOException e) {
			System.out.println(e);
		} catch (IOException e) {
			System.out.println(e);
		} IOException e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
			while (true) {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			}
			for (int i = 0; i < cases.size(); i++) {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			}
		} while (true) {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			} true {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			} line = buf.readLine() line buf.readLine() buf.readLine buf cases.add(Integer.parseInt(line)) cases.add cases Integer.parseInt(line) Integer.parseInt Integer line if (cases.get(count) == 0)
					break; cases.get(count) == 0 cases.get(count) cases.get cases count 0 break; count++ count for (int i = 0; i < cases.size(); i++) {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			} int i = 0; int i = 0; i 0 i < cases.size() i cases.size() cases.size cases i++ i++ i {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			} {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			} if (cases.get(i) == 0)
					break; cases.get(i) == 0 cases.get(i) cases.get cases i 0 break; System.out.println("Case " + (i + 1) + ": " + cases.get(i)) System.out.println System.out System System.out "Case " + (i + 1) + ": " + cases.get(i) ": " "Case " + (i + 1) + ": " + cases.get(i) "Case " (i + 1) i 1 ": " cases.get(i) cases.get cases i String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ArrayList<Integer> cases = new ArrayList<Integer>();
		int count = 0;
		String line;
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		try {
			while (true) {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			}
			for (int i = 0; i < cases.size(); i++) {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ArrayList<Integer> cases = new ArrayList<Integer>();
		int count = 0;
		String line;
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		try {
			while (true) {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			}
			for (int i = 0; i < cases.size(); i++) {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	}
} Main
import java.io.*;
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ArrayList<Integer> cases = new ArrayList<Integer>();
		int count = 0;
		String line;
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		try {
			while (true) {
				line = buf.readLine();
				cases.add(Integer.parseInt(line));
				if (cases.get(count) == 0)
					break;
				count++;
			}
			for (int i = 0; i < cases.size(); i++) {
				if (cases.get(i) == 0)
					break;
				System.out.println("Case " + (i + 1) + ": " + cases.get(i));
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	}
}