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

public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{
		for(int i=1;;i++){
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		}
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	}

} 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){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{
		for(int i=1;;i++){
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		}
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	}

} Main public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{
		for(int i=1;;i++){
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		}
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	} main {

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{
		for(int i=1;;i++){
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		}
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	} BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try{
		for(int i=1;;i++){
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		}
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		} catch(IOException e){
			System.out.println("??¨??????:"+e);

		} IOException e {
			System.out.println("??¨??????:"+e);

		} System.out.println("??¨??????:"+e) System.out.println System.out System System.out "??¨??????:"+e "??¨??????:" e {
		for(int i=1;;i++){
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		}
		} for(int i=1;;i++){
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		} int i=1; int i=1; i 1 i++ i++ i {
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		} {
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		} int x=Integer.parseInt(reader.readLine()); x Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader if(x==0)break; x==0 x 0 break; 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){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{
		for(int i=1;;i++){
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		}
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	}

} public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{
		for(int i=1;;i++){
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		}
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	}

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

public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{
		for(int i=1;;i++){
			int x=Integer.parseInt(reader.readLine());
			if(x==0)break;
			System.out.println("Case "+i+": "+x);

		}
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	}

}