import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder output = new StringBuilder();

        int i = 1;

        while(true){
            String input = br.readLine();
            int x = Integer.parseInt(input);

            if(x == 0){
                break;
            }
            output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
        }
            System.out.print(output);
//          ??¢?????????????????????????????????????????????println???????????¨????¨??????????????????????????????¨????????????
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder output = new StringBuilder();

        int i = 1;

        while(true){
            String input = br.readLine();
            int x = Integer.parseInt(input);

            if(x == 0){
                break;
            }
            output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
        }
            System.out.print(output);
//          ??¢?????????????????????????????????????????????println???????????¨????¨??????????????????????????????¨????????????
    }
} Main public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder output = new StringBuilder();

        int i = 1;

        while(true){
            String input = br.readLine();
            int x = Integer.parseInt(input);

            if(x == 0){
                break;
            }
            output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
        }
            System.out.print(output);
//          ??¢?????????????????????????????????????????????println???????????¨????¨??????????????????????????????¨????????????
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder output = new StringBuilder();

        int i = 1;

        while(true){
            String input = br.readLine();
            int x = Integer.parseInt(input);

            if(x == 0){
                break;
            }
            output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
        }
            System.out.print(output);
//          ??¢?????????????????????????????????????????????println???????????¨????¨??????????????????????????????¨????????????
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder output = new StringBuilder(); output new StringBuilder() int i = 1; i 1 while(true){
            String input = br.readLine();
            int x = Integer.parseInt(input);

            if(x == 0){
                break;
            }
            output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
        } true {
            String input = br.readLine();
            int x = Integer.parseInt(input);

            if(x == 0){
                break;
            }
            output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
        } String input = br.readLine(); input br.readLine() br.readLine br int x = Integer.parseInt(input); x Integer.parseInt(input) Integer.parseInt Integer input if(x == 0){
                break;
            } x == 0 x 0 {
                break;
            } break; output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n") output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)) output.append("Case ").append(Integer.toString(i++)).append(": ").append output.append("Case ").append(Integer.toString(i++)).append(": ") output.append("Case ").append(Integer.toString(i++)).append output.append("Case ").append(Integer.toString(i++)) output.append("Case ").append output.append("Case ") output.append output "Case " Integer.toString(i++) Integer.toString Integer i++ i ": " Integer.toString(x) Integer.toString Integer x "\n" System.out.print(output) System.out.print System.out System System.out output String[] args args public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder output = new StringBuilder();

        int i = 1;

        while(true){
            String input = br.readLine();
            int x = Integer.parseInt(input);

            if(x == 0){
                break;
            }
            output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
        }
            System.out.print(output);
//          ??¢?????????????????????????????????????????????println???????????¨????¨??????????????????????????????¨????????????
    }
} public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder output = new StringBuilder();

        int i = 1;

        while(true){
            String input = br.readLine();
            int x = Integer.parseInt(input);

            if(x == 0){
                break;
            }
            output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
        }
            System.out.print(output);
//          ??¢?????????????????????????????????????????????println???????????¨????¨??????????????????????????????¨????????????
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder output = new StringBuilder();

        int i = 1;

        while(true){
            String input = br.readLine();
            int x = Integer.parseInt(input);

            if(x == 0){
                break;
            }
            output.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
        }
            System.out.print(output);
//          ??¢?????????????????????????????????????????????println???????????¨????¨??????????????????????????????¨????????????
    }
}