import java.util.Scanner;

class Main{
    public static void main(String[] args) throws Exception{

        int num = 10000;

        Scanner sc = new Scanner(System.in);

        for (int i = 1; i <= num; i++) {
            int x = sc.nextInt();
            if(x == 0){
                break;
            }
            System.out.println("Case "+ i + ": " + x);
        }


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

        int num = 10000;

        Scanner sc = new Scanner(System.in);

        for (int i = 1; i <= num; i++) {
            int x = sc.nextInt();
            if(x == 0){
                break;
            }
            System.out.println("Case "+ i + ": " + x);
        }


    }
} Main public static void main(String[] args) throws Exception{

        int num = 10000;

        Scanner sc = new Scanner(System.in);

        for (int i = 1; i <= num; i++) {
            int x = sc.nextInt();
            if(x == 0){
                break;
            }
            System.out.println("Case "+ i + ": " + x);
        }


    } main {

        int num = 10000;

        Scanner sc = new Scanner(System.in);

        for (int i = 1; i <= num; i++) {
            int x = sc.nextInt();
            if(x == 0){
                break;
            }
            System.out.println("Case "+ i + ": " + x);
        }


    } int num = 10000; num 10000 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for (int i = 1; i <= num; i++) {
            int x = sc.nextInt();
            if(x == 0){
                break;
            }
            System.out.println("Case "+ i + ": " + x);
        } int i = 1; int i = 1; i 1 i <= num i num i++ i++ i {
            int x = sc.nextInt();
            if(x == 0){
                break;
            }
            System.out.println("Case "+ i + ": " + x);
        } {
            int x = sc.nextInt();
            if(x == 0){
                break;
            }
            System.out.println("Case "+ i + ": " + x);
        } int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc if(x == 0){
                break;
            } x == 0 x 0 {
                break;
            } break; System.out.println("Case "+ i + ": " + x) System.out.println System.out System System.out "Case "+ i + ": " + x ": " "Case "+ i + ": " + x "Case " i ": " x String[] args args
import java.util.Scanner;

class Main{
    public static void main(String[] args) throws Exception{

        int num = 10000;

        Scanner sc = new Scanner(System.in);

        for (int i = 1; i <= num; i++) {
            int x = sc.nextInt();
            if(x == 0){
                break;
            }
            System.out.println("Case "+ i + ": " + x);
        }


    }
}