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

public class Main {

	public static void main(String[] args)throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int i=0,x;

		do{
			s= buf.readLine();
			x= Integer.parseInt(s);
			i=i+1;
		if(x!=0){
			System.out.println("Case "+i+": "+x);
		}
		else{}
		}while(x!=0);
	}
} 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 buf = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int i=0,x;

		do{
			s= buf.readLine();
			x= Integer.parseInt(s);
			i=i+1;
		if(x!=0){
			System.out.println("Case "+i+": "+x);
		}
		else{}
		}while(x!=0);
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int i=0,x;

		do{
			s= buf.readLine();
			x= Integer.parseInt(s);
			i=i+1;
		if(x!=0){
			System.out.println("Case "+i+": "+x);
		}
		else{}
		}while(x!=0);
	} main {
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int i=0,x;

		do{
			s= buf.readLine();
			x= Integer.parseInt(s);
			i=i+1;
		if(x!=0){
			System.out.println("Case "+i+": "+x);
		}
		else{}
		}while(x!=0);
	} BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) String s; s int i=0 i 0 x; x do{
			s= buf.readLine();
			x= Integer.parseInt(s);
			i=i+1;
		if(x!=0){
			System.out.println("Case "+i+": "+x);
		}
		else{}
		}while(x!=0); x!=0 x 0 {
			s= buf.readLine();
			x= Integer.parseInt(s);
			i=i+1;
		if(x!=0){
			System.out.println("Case "+i+": "+x);
		}
		else{}
		} s= buf.readLine() s buf.readLine() buf.readLine buf x= Integer.parseInt(s) x Integer.parseInt(s) Integer.parseInt Integer s i=i+1 i i+1 i 1 if(x!=0){
			System.out.println("Case "+i+": "+x);
		}
		else{} x!=0 x 0 {
			System.out.println("Case "+i+": "+x);
		} System.out.println("Case "+i+": "+x) System.out.println System.out System System.out "Case "+i+": "+x ": " "Case "+i+": "+x "Case " i ": " x {} String[] args args public class Main {

	public static void main(String[] args)throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int i=0,x;

		do{
			s= buf.readLine();
			x= Integer.parseInt(s);
			i=i+1;
		if(x!=0){
			System.out.println("Case "+i+": "+x);
		}
		else{}
		}while(x!=0);
	}
} public class Main {

	public static void main(String[] args)throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int i=0,x;

		do{
			s= buf.readLine();
			x= Integer.parseInt(s);
			i=i+1;
		if(x!=0){
			System.out.println("Case "+i+": "+x);
		}
		else{}
		}while(x!=0);
	}
} 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 buf = new BufferedReader(new InputStreamReader(System.in));
		String s;
		int i=0,x;

		do{
			s= buf.readLine();
			x= Integer.parseInt(s);
			i=i+1;
		if(x!=0){
			System.out.println("Case "+i+": "+x);
		}
		else{}
		}while(x!=0);
	}
}