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

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int times = 1;
		while(true) {
			String str = br.readLine();
			int n = Integer.parseInt(str);
			if (n == 0) {
				break;
			}
			System.out.println("Case " + times + ": " + n);
			times++;
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int times = 1;
		while(true) {
			String str = br.readLine();
			int n = Integer.parseInt(str);
			if (n == 0) {
				break;
			}
			System.out.println("Case " + times + ": " + n);
			times++;
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int times = 1;
		while(true) {
			String str = br.readLine();
			int n = Integer.parseInt(str);
			if (n == 0) {
				break;
			}
			System.out.println("Case " + times + ": " + n);
			times++;
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int times = 1;
		while(true) {
			String str = br.readLine();
			int n = Integer.parseInt(str);
			if (n == 0) {
				break;
			}
			System.out.println("Case " + times + ": " + n);
			times++;
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int times = 1; times 1 while(true) {
			String str = br.readLine();
			int n = Integer.parseInt(str);
			if (n == 0) {
				break;
			}
			System.out.println("Case " + times + ": " + n);
			times++;
		} true {
			String str = br.readLine();
			int n = Integer.parseInt(str);
			if (n == 0) {
				break;
			}
			System.out.println("Case " + times + ": " + n);
			times++;
		} String str = br.readLine(); str br.readLine() br.readLine br int n = Integer.parseInt(str); n Integer.parseInt(str) Integer.parseInt Integer str if (n == 0) {
				break;
			} n == 0 n 0 {
				break;
			} break; System.out.println("Case " + times + ": " + n) System.out.println System.out System System.out "Case " + times + ": " + n ": " "Case " + times + ": " + n "Case " times ": " n times++ times String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int times = 1;
		while(true) {
			String str = br.readLine();
			int n = Integer.parseInt(str);
			if (n == 0) {
				break;
			}
			System.out.println("Case " + times + ": " + n);
			times++;
		}
	}
}