import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int count = 1;
        while(true){
            String str = input.nextLine();
            if(!str.equals("0")){
                System.out.println("Case "+ count + ": " + str);
                count = count + 1;
            }else{
                break;
            }
        }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int count = 1;
        while(true){
            String str = input.nextLine();
            if(!str.equals("0")){
                System.out.println("Case "+ count + ": " + str);
                count = count + 1;
            }else{
                break;
            }
        }
    }
} Main public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int count = 1;
        while(true){
            String str = input.nextLine();
            if(!str.equals("0")){
                System.out.println("Case "+ count + ": " + str);
                count = count + 1;
            }else{
                break;
            }
        }
    } main {
        Scanner input = new Scanner(System.in);
        int count = 1;
        while(true){
            String str = input.nextLine();
            if(!str.equals("0")){
                System.out.println("Case "+ count + ": " + str);
                count = count + 1;
            }else{
                break;
            }
        }
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int count = 1; count 1 while(true){
            String str = input.nextLine();
            if(!str.equals("0")){
                System.out.println("Case "+ count + ": " + str);
                count = count + 1;
            }else{
                break;
            }
        } true {
            String str = input.nextLine();
            if(!str.equals("0")){
                System.out.println("Case "+ count + ": " + str);
                count = count + 1;
            }else{
                break;
            }
        } String str = input.nextLine(); str input.nextLine() input.nextLine input if(!str.equals("0")){
                System.out.println("Case "+ count + ": " + str);
                count = count + 1;
            }else{
                break;
            } !str.equals("0") str.equals("0") str.equals str "0" {
                System.out.println("Case "+ count + ": " + str);
                count = count + 1;
            } System.out.println("Case "+ count + ": " + str) System.out.println System.out System System.out "Case "+ count + ": " + str ": " "Case "+ count + ": " + str "Case " count ": " str count = count + 1 count count + 1 count 1 {
                break;
            } break; String[] args args
import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int count = 1;
        while(true){
            String str = input.nextLine();
            if(!str.equals("0")){
                System.out.println("Case "+ count + ": " + str);
                count = count + 1;
            }else{
                break;
            }
        }
    }
}
