import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = 0;
		for(int a=1;a>0;a++){
			H = scan.nextInt();
			if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = 0;
		for(int a=1;a>0;a++){
			H = scan.nextInt();
			if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			}
		}
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = 0;
		for(int a=1;a>0;a++){
			H = scan.nextInt();
			if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int H = 0;
		for(int a=1;a>0;a++){
			H = scan.nextInt();
			if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int H = 0; H 0 for(int a=1;a>0;a++){
			H = scan.nextInt();
			if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			}
		} int a=1; int a=1; a 1 a>0 a 0 a++ a++ a {
			H = scan.nextInt();
			if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			}
		} {
			H = scan.nextInt();
			if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			}
		} H = scan.nextInt() H scan.nextInt() scan.nextInt scan if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			} H != 0 H 0 {
				System.out.println("Case "+a+": "+H);
			} System.out.println("Case "+a+": "+H) System.out.println System.out System System.out "Case "+a+": "+H ": " "Case "+a+": "+H "Case " a ": " H {
				break;
			} break; String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = 0;
		for(int a=1;a>0;a++){
			H = scan.nextInt();
			if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			}
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = 0;
		for(int a=1;a>0;a++){
			H = scan.nextInt();
			if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			}
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = 0;
		for(int a=1;a>0;a++){
			H = scan.nextInt();
			if(H != 0){
				System.out.println("Case "+a+": "+H);
			}else{
				break;
			}
		}
	}
}