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