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

public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
			i++;
			int k = Integer.parseInt(br.readLine());
			if(k == 0){break;}
			System.out.println("Case "+i+": "+k);
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
			i++;
			int k = Integer.parseInt(br.readLine());
			if(k == 0){break;}
			System.out.println("Case "+i+": "+k);
		}
	}

} Main /**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
			i++;
			int k = Integer.parseInt(br.readLine());
			if(k == 0){break;}
			System.out.println("Case "+i+": "+k);
		}
	} main {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
			i++;
			int k = Integer.parseInt(br.readLine());
			if(k == 0){break;}
			System.out.println("Case "+i+": "+k);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int i=0; i 0 while(true){
			i++;
			int k = Integer.parseInt(br.readLine());
			if(k == 0){break;}
			System.out.println("Case "+i+": "+k);
		} true {
			i++;
			int k = Integer.parseInt(br.readLine());
			if(k == 0){break;}
			System.out.println("Case "+i+": "+k);
		} i++ i int k = Integer.parseInt(br.readLine()); k Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(k == 0){break;} k == 0 k 0 {break;} break; System.out.println("Case "+i+": "+k) System.out.println System.out System System.out "Case "+i+": "+k ": " "Case "+i+": "+k "Case " i ": " k String[] args args public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
			i++;
			int k = Integer.parseInt(br.readLine());
			if(k == 0){break;}
			System.out.println("Case "+i+": "+k);
		}
	}

} public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
			i++;
			int k = Integer.parseInt(br.readLine());
			if(k == 0){break;}
			System.out.println("Case "+i+": "+k);
		}
	}

} Main

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

public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int i=0;
		while(true){
			i++;
			int k = Integer.parseInt(br.readLine());
			if(k == 0){break;}
			System.out.println("Case "+i+": "+k);
		}
	}

}