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));
        int count = 1;
        while (true) {
            final String str = br.readLine();
            if (str.equals("0"))
                break;
            System.out.println(String.format("Case %d: %s", count, str));
            count++;
        }
    }
} 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));
        int count = 1;
        while (true) {
            final String str = br.readLine();
            if (str.equals("0"))
                break;
            System.out.println(String.format("Case %d: %s", count, str));
            count++;
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        int count = 1;
        while (true) {
            final String str = br.readLine();
            if (str.equals("0"))
                break;
            System.out.println(String.format("Case %d: %s", count, str));
            count++;
        }
    } main {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        int count = 1;
        while (true) {
            final String str = br.readLine();
            if (str.equals("0"))
                break;
            System.out.println(String.format("Case %d: %s", count, str));
            count++;
        }
    } BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in)); br new BufferedReader(
            new InputStreamReader(System.in)) int count = 1; count 1 while (true) {
            final String str = br.readLine();
            if (str.equals("0"))
                break;
            System.out.println(String.format("Case %d: %s", count, str));
            count++;
        } true {
            final String str = br.readLine();
            if (str.equals("0"))
                break;
            System.out.println(String.format("Case %d: %s", count, str));
            count++;
        } final String str = br.readLine(); str br.readLine() br.readLine br if (str.equals("0"))
                break; str.equals("0") str.equals str "0" break; System.out.println(String.format("Case %d: %s", count, str)) System.out.println System.out System System.out String.format("Case %d: %s", count, str) String.format String "Case %d: %s" count str count++ count String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        int count = 1;
        while (true) {
            final String str = br.readLine();
            if (str.equals("0"))
                break;
            System.out.println(String.format("Case %d: %s", count, str));
            count++;
        }
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        int count = 1;
        while (true) {
            final String str = br.readLine();
            if (str.equals("0"))
                break;
            System.out.println(String.format("Case %d: %s", count, str));
            count++;
        }
    }
} 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));
        int count = 1;
        while (true) {
            final String str = br.readLine();
            if (str.equals("0"))
                break;
            System.out.println(String.format("Case %d: %s", count, str));
            count++;
        }
    }
}