import java.util.Scanner;


public class Main{

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int x[]=new int[20000];
		x[0]=kb.nextInt();
		int h=0;
		int i=0;
		while(x[h]!=0){
			h++;
			x[h]=kb.nextInt();

		}

		while(x[i]!=0){
			System.out.printf("Case %d: %d\n",i+1,x[i]);
			i++;
		}

	}
} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int x[]=new int[20000];
		x[0]=kb.nextInt();
		int h=0;
		int i=0;
		while(x[h]!=0){
			h++;
			x[h]=kb.nextInt();

		}

		while(x[i]!=0){
			System.out.printf("Case %d: %d\n",i+1,x[i]);
			i++;
		}

	}
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int x[]=new int[20000];
		x[0]=kb.nextInt();
		int h=0;
		int i=0;
		while(x[h]!=0){
			h++;
			x[h]=kb.nextInt();

		}

		while(x[i]!=0){
			System.out.printf("Case %d: %d\n",i+1,x[i]);
			i++;
		}

	} main {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int x[]=new int[20000];
		x[0]=kb.nextInt();
		int h=0;
		int i=0;
		while(x[h]!=0){
			h++;
			x[h]=kb.nextInt();

		}

		while(x[i]!=0){
			System.out.printf("Case %d: %d\n",i+1,x[i]);
			i++;
		}

	} Scanner kb=new Scanner(System.in); kb new Scanner(System.in) int x[]=new int[20000]; x new int[20000] 20000 x[0]=kb.nextInt() x[0] x 0 kb.nextInt() kb.nextInt kb int h=0; h 0 int i=0; i 0 while(x[h]!=0){
			h++;
			x[h]=kb.nextInt();

		} x[h]!=0 x[h] x h 0 {
			h++;
			x[h]=kb.nextInt();

		} h++ h x[h]=kb.nextInt() x[h] x h kb.nextInt() kb.nextInt kb while(x[i]!=0){
			System.out.printf("Case %d: %d\n",i+1,x[i]);
			i++;
		} x[i]!=0 x[i] x i 0 {
			System.out.printf("Case %d: %d\n",i+1,x[i]);
			i++;
		} System.out.printf("Case %d: %d\n",i+1,x[i]) System.out.printf System.out System System.out "Case %d: %d\n" i+1 i 1 x[i] x i i++ i String[] args args public class Main{

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int x[]=new int[20000];
		x[0]=kb.nextInt();
		int h=0;
		int i=0;
		while(x[h]!=0){
			h++;
			x[h]=kb.nextInt();

		}

		while(x[i]!=0){
			System.out.printf("Case %d: %d\n",i+1,x[i]);
			i++;
		}

	}
} public class Main{

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int x[]=new int[20000];
		x[0]=kb.nextInt();
		int h=0;
		int i=0;
		while(x[h]!=0){
			h++;
			x[h]=kb.nextInt();

		}

		while(x[i]!=0){
			System.out.printf("Case %d: %d\n",i+1,x[i]);
			i++;
		}

	}
} Main
import java.util.Scanner;


public class Main{

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int x[]=new int[20000];
		x[0]=kb.nextInt();
		int h=0;
		int i=0;
		while(x[h]!=0){
			h++;
			x[h]=kb.nextInt();

		}

		while(x[i]!=0){
			System.out.printf("Case %d: %d\n",i+1,x[i]);
			i++;
		}

	}
}