import java.util.Scanner;

/**
 * Created by labuser on 2016/04/19.
 */
public class Main {
    public static void main(String[] args) {
        new Main().run();
    }


    private void run() {

        int i = 1;

        Scanner sc = new Scanner(System.in);

        while (true) {
            int a = sc.nextInt();
            if (a == 0) break;
        else {
                System.out.println("Case" + " " + i + ":" + " " + a);
                i = i + 1;
            }


        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        new Main().run();
    }


    private void run() {

        int i = 1;

        Scanner sc = new Scanner(System.in);

        while (true) {
            int a = sc.nextInt();
            if (a == 0) break;
        else {
                System.out.println("Case" + " " + i + ":" + " " + a);
                i = i + 1;
            }


        }
    }
} Main public static void main(String[] args) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args private void run() {

        int i = 1;

        Scanner sc = new Scanner(System.in);

        while (true) {
            int a = sc.nextInt();
            if (a == 0) break;
        else {
                System.out.println("Case" + " " + i + ":" + " " + a);
                i = i + 1;
            }


        }
    } run {

        int i = 1;

        Scanner sc = new Scanner(System.in);

        while (true) {
            int a = sc.nextInt();
            if (a == 0) break;
        else {
                System.out.println("Case" + " " + i + ":" + " " + a);
                i = i + 1;
            }


        }
    } int i = 1; i 1 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (true) {
            int a = sc.nextInt();
            if (a == 0) break;
        else {
                System.out.println("Case" + " " + i + ":" + " " + a);
                i = i + 1;
            }


        } true {
            int a = sc.nextInt();
            if (a == 0) break;
        else {
                System.out.println("Case" + " " + i + ":" + " " + a);
                i = i + 1;
            }


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


    private void run() {

        int i = 1;

        Scanner sc = new Scanner(System.in);

        while (true) {
            int a = sc.nextInt();
            if (a == 0) break;
        else {
                System.out.println("Case" + " " + i + ":" + " " + a);
                i = i + 1;
            }


        }
    }
} public class Main {
    public static void main(String[] args) {
        new Main().run();
    }


    private void run() {

        int i = 1;

        Scanner sc = new Scanner(System.in);

        while (true) {
            int a = sc.nextInt();
            if (a == 0) break;
        else {
                System.out.println("Case" + " " + i + ":" + " " + a);
                i = i + 1;
            }


        }
    }
} Main
import java.util.Scanner;

/**
 * Created by labuser on 2016/04/19.
 */
public class Main {
    public static void main(String[] args) {
        new Main().run();
    }


    private void run() {

        int i = 1;

        Scanner sc = new Scanner(System.in);

        while (true) {
            int a = sc.nextInt();
            if (a == 0) break;
        else {
                System.out.println("Case" + " " + i + ":" + " " + a);
                i = i + 1;
            }


        }
    }
}