import java.util.Scanner;


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


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