import java.util.Scanner;

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

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