import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int i=s.nextInt();
		int n=1;
		while(i!=0){
			System.out.println("Case "+n+": "+i);
			n++;
			i=s.nextInt();
			continue;
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int i=s.nextInt();
		int n=1;
		while(i!=0){
			System.out.println("Case "+n+": "+i);
			n++;
			i=s.nextInt();
			continue;
		}
	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int i=s.nextInt();
		int n=1;
		while(i!=0){
			System.out.println("Case "+n+": "+i);
			n++;
			i=s.nextInt();
			continue;
		}
	} main {
		Scanner s = new Scanner(System.in);
		int i=s.nextInt();
		int n=1;
		while(i!=0){
			System.out.println("Case "+n+": "+i);
			n++;
			i=s.nextInt();
			continue;
		}
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int i=s.nextInt(); i s.nextInt() s.nextInt s int n=1; n 1 while(i!=0){
			System.out.println("Case "+n+": "+i);
			n++;
			i=s.nextInt();
			continue;
		} i!=0 i 0 {
			System.out.println("Case "+n+": "+i);
			n++;
			i=s.nextInt();
			continue;
		} System.out.println("Case "+n+": "+i) System.out.println System.out System System.out "Case "+n+": "+i ": " "Case "+n+": "+i "Case " n ": " i n++ n i=s.nextInt() i s.nextInt() s.nextInt s continue; String[] args args public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int i=s.nextInt();
		int n=1;
		while(i!=0){
			System.out.println("Case "+n+": "+i);
			n++;
			i=s.nextInt();
			continue;
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int i=s.nextInt();
		int n=1;
		while(i!=0){
			System.out.println("Case "+n+": "+i);
			n++;
			i=s.nextInt();
			continue;
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int i=s.nextInt();
		int n=1;
		while(i!=0){
			System.out.println("Case "+n+": "+i);
			n++;
			i=s.nextInt();
			continue;
		}
	}
}