import java.io.*;
import java.util.*;

public class Main {
	public static void main (String args[]){
		Scanner sc=new Scanner(new InputStreamReader(System.in));
		int i=0,x;
		while(true){
			i++;
			x=sc.nextInt();
			if(x==0) break;
			System.out.println("Case "+i+": "+x);
		}
	sc.close();
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main (String args[]){
		Scanner sc=new Scanner(new InputStreamReader(System.in));
		int i=0,x;
		while(true){
			i++;
			x=sc.nextInt();
			if(x==0) break;
			System.out.println("Case "+i+": "+x);
		}
	sc.close();
	}
} Main public static void main (String args[]){
		Scanner sc=new Scanner(new InputStreamReader(System.in));
		int i=0,x;
		while(true){
			i++;
			x=sc.nextInt();
			if(x==0) break;
			System.out.println("Case "+i+": "+x);
		}
	sc.close();
	} main {
		Scanner sc=new Scanner(new InputStreamReader(System.in));
		int i=0,x;
		while(true){
			i++;
			x=sc.nextInt();
			if(x==0) break;
			System.out.println("Case "+i+": "+x);
		}
	sc.close();
	} Scanner sc=new Scanner(new InputStreamReader(System.in)); sc new Scanner(new InputStreamReader(System.in)) int i=0 i 0 x; x while(true){
			i++;
			x=sc.nextInt();
			if(x==0) break;
			System.out.println("Case "+i+": "+x);
		} true {
			i++;
			x=sc.nextInt();
			if(x==0) break;
			System.out.println("Case "+i+": "+x);
		} i++ i x=sc.nextInt() x sc.nextInt() sc.nextInt sc 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 sc.close() sc.close sc String args[] args public class Main {
	public static void main (String args[]){
		Scanner sc=new Scanner(new InputStreamReader(System.in));
		int i=0,x;
		while(true){
			i++;
			x=sc.nextInt();
			if(x==0) break;
			System.out.println("Case "+i+": "+x);
		}
	sc.close();
	}
} public class Main {
	public static void main (String args[]){
		Scanner sc=new Scanner(new InputStreamReader(System.in));
		int i=0,x;
		while(true){
			i++;
			x=sc.nextInt();
			if(x==0) break;
			System.out.println("Case "+i+": "+x);
		}
	sc.close();
	}
} Main
import java.io.*;
import java.util.*;

public class Main {
	public static void main (String args[]){
		Scanner sc=new Scanner(new InputStreamReader(System.in));
		int i=0,x;
		while(true){
			i++;
			x=sc.nextInt();
			if(x==0) break;
			System.out.println("Case "+i+": "+x);
		}
	sc.close();
	}
}