import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String n;
		int i=1;
		n=br.readLine();
		while(n.equals("0")==false){
			System.out.println("Case "+i+": "+n);
			i++;
			n=br.readLine();
		}
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String n;
		int i=1;
		n=br.readLine();
		while(n.equals("0")==false){
			System.out.println("Case "+i+": "+n);
			i++;
			n=br.readLine();
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String n;
		int i=1;
		n=br.readLine();
		while(n.equals("0")==false){
			System.out.println("Case "+i+": "+n);
			i++;
			n=br.readLine();
		}
	} main {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String n;
		int i=1;
		n=br.readLine();
		while(n.equals("0")==false){
			System.out.println("Case "+i+": "+n);
			i++;
			n=br.readLine();
		}
	} BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String n; n int i=1; i 1 n=br.readLine() n br.readLine() br.readLine br while(n.equals("0")==false){
			System.out.println("Case "+i+": "+n);
			i++;
			n=br.readLine();
		} n.equals("0")==false n.equals("0") n.equals n "0" false {
			System.out.println("Case "+i+": "+n);
			i++;
			n=br.readLine();
		} System.out.println("Case "+i+": "+n) System.out.println System.out System System.out "Case "+i+": "+n ": " "Case "+i+": "+n "Case " i ": " n i++ i n=br.readLine() n br.readLine() br.readLine br String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String n;
		int i=1;
		n=br.readLine();
		while(n.equals("0")==false){
			System.out.println("Case "+i+": "+n);
			i++;
			n=br.readLine();
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String n;
		int i=1;
		n=br.readLine();
		while(n.equals("0")==false){
			System.out.println("Case "+i+": "+n);
			i++;
			n=br.readLine();
		}
	}
} Main
import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String n;
		int i=1;
		n=br.readLine();
		while(n.equals("0")==false){
			System.out.println("Case "+i+": "+n);
			i++;
			n=br.readLine();
		}
	}
}