import java.io.*;

class Main {
	public static void main (String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		String buf;
		int count = 1;

		try {
			while (true) {
				buf = br.readLine();
				if (Integer.parseInt(buf)==0) break;
				System.out.println("Case "+count+": "+Integer.parseInt(buf));
				count++;
			}
		} catch (Exception e) {
			//Exception
		}
	}
} import java.io.*; io.* java class Main {
	public static void main (String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		String buf;
		int count = 1;

		try {
			while (true) {
				buf = br.readLine();
				if (Integer.parseInt(buf)==0) break;
				System.out.println("Case "+count+": "+Integer.parseInt(buf));
				count++;
			}
		} catch (Exception e) {
			//Exception
		}
	}
} Main public static void main (String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		String buf;
		int count = 1;

		try {
			while (true) {
				buf = br.readLine();
				if (Integer.parseInt(buf)==0) break;
				System.out.println("Case "+count+": "+Integer.parseInt(buf));
				count++;
			}
		} catch (Exception e) {
			//Exception
		}
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		String buf;
		int count = 1;

		try {
			while (true) {
				buf = br.readLine();
				if (Integer.parseInt(buf)==0) break;
				System.out.println("Case "+count+": "+Integer.parseInt(buf));
				count++;
			}
		} catch (Exception e) {
			//Exception
		}
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) String buf; buf int count = 1; count 1 try {
			while (true) {
				buf = br.readLine();
				if (Integer.parseInt(buf)==0) break;
				System.out.println("Case "+count+": "+Integer.parseInt(buf));
				count++;
			}
		} catch (Exception e) {
			//Exception
		} catch (Exception e) {
			//Exception
		} Exception e {
			//Exception
		} {
			while (true) {
				buf = br.readLine();
				if (Integer.parseInt(buf)==0) break;
				System.out.println("Case "+count+": "+Integer.parseInt(buf));
				count++;
			}
		} while (true) {
				buf = br.readLine();
				if (Integer.parseInt(buf)==0) break;
				System.out.println("Case "+count+": "+Integer.parseInt(buf));
				count++;
			} true {
				buf = br.readLine();
				if (Integer.parseInt(buf)==0) break;
				System.out.println("Case "+count+": "+Integer.parseInt(buf));
				count++;
			} buf = br.readLine() buf br.readLine() br.readLine br if (Integer.parseInt(buf)==0) break; Integer.parseInt(buf)==0 Integer.parseInt(buf) Integer.parseInt Integer buf 0 break; System.out.println("Case "+count+": "+Integer.parseInt(buf)) System.out.println System.out System System.out "Case "+count+": "+Integer.parseInt(buf) ": " "Case "+count+": "+Integer.parseInt(buf) "Case " count ": " Integer.parseInt(buf) Integer.parseInt Integer buf count++ count String args[] args
import java.io.*;

class Main {
	public static void main (String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		String buf;
		int count = 1;

		try {
			while (true) {
				buf = br.readLine();
				if (Integer.parseInt(buf)==0) break;
				System.out.println("Case "+count+": "+Integer.parseInt(buf));
				count++;
			}
		} catch (Exception e) {
			//Exception
		}
	}
}