import java.util.Scanner;

class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        int x;
        int count = 1;

        while (true){
            x = Integer.parseInt(scan.next());

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

        int x;
        int count = 1;

        while (true){
            x = Integer.parseInt(scan.next());

            if (x == 0)
                break;
            System.out.println("Case " + count + ": " + x);
            count += 1;
        }
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        int x;
        int count = 1;

        while (true){
            x = Integer.parseInt(scan.next());

            if (x == 0)
                break;
            System.out.println("Case " + count + ": " + x);
            count += 1;
        }
    } main {
        Scanner scan = new Scanner(System.in);

        int x;
        int count = 1;

        while (true){
            x = Integer.parseInt(scan.next());

            if (x == 0)
                break;
            System.out.println("Case " + count + ": " + x);
            count += 1;
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x; x int count = 1; count 1 while (true){
            x = Integer.parseInt(scan.next());

            if (x == 0)
                break;
            System.out.println("Case " + count + ": " + x);
            count += 1;
        } true {
            x = Integer.parseInt(scan.next());

            if (x == 0)
                break;
            System.out.println("Case " + count + ": " + x);
            count += 1;
        } x = Integer.parseInt(scan.next()) x Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan if (x == 0)
                break; x == 0 x 0 break; System.out.println("Case " + count + ": " + x) System.out.println System.out System System.out "Case " + count + ": " + x ": " "Case " + count + ": " + x "Case " count ": " x count += 1 count 1 String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        int x;
        int count = 1;

        while (true){
            x = Integer.parseInt(scan.next());

            if (x == 0)
                break;
            System.out.println("Case " + count + ": " + x);
            count += 1;
        }
    }
}