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


public class Main{

	public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		int num = 1;
		while(true){
			String str = br.readLine();
			num = Integer.parseInt(str);

				if(num == 0){
					break;
				}
				else if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				}
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{

	public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		int num = 1;
		while(true){
			String str = br.readLine();
			num = Integer.parseInt(str);

				if(num == 0){
					break;
				}
				else if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				}
		}
	}
} Main public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		int num = 1;
		while(true){
			String str = br.readLine();
			num = Integer.parseInt(str);

				if(num == 0){
					break;
				}
				else if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				}
		}
	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		int num = 1;
		while(true){
			String str = br.readLine();
			num = Integer.parseInt(str);

				if(num == 0){
					break;
				}
				else if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				}
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int i=0; i 0 int num = 1; num 1 while(true){
			String str = br.readLine();
			num = Integer.parseInt(str);

				if(num == 0){
					break;
				}
				else if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				}
		} true {
			String str = br.readLine();
			num = Integer.parseInt(str);

				if(num == 0){
					break;
				}
				else if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				}
		} String str = br.readLine(); str br.readLine() br.readLine br num = Integer.parseInt(str) num Integer.parseInt(str) Integer.parseInt Integer str if(num == 0){
					break;
				}
				else if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				} num == 0 num 0 {
					break;
				} break; if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				} num != 0 num 0 {
					i++;
					System.out.println("Case " + i + ": " + num);
				} i++ i System.out.println("Case " + i + ": " + num) System.out.println System.out System System.out "Case " + i + ": " + num ": " "Case " + i + ": " + num "Case " i ": " num String[] args args public class Main{

	public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		int num = 1;
		while(true){
			String str = br.readLine();
			num = Integer.parseInt(str);

				if(num == 0){
					break;
				}
				else if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				}
		}
	}
} public class Main{

	public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		int num = 1;
		while(true){
			String str = br.readLine();
			num = Integer.parseInt(str);

				if(num == 0){
					break;
				}
				else if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				}
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class Main{

	public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		int num = 1;
		while(true){
			String str = br.readLine();
			num = Integer.parseInt(str);

				if(num == 0){
					break;
				}
				else if(num != 0){
					i++;
					System.out.println("Case " + i + ": " + num);
				}
		}
	}
}