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

class Main {
    private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    private static final PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args) throws IOException {
        for (int i = 1;; i++) {
            String x = br.readLine();
            if(x.equals("0")) break;
            out.println("Case "+i+": "+x);
        }
        out.flush();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io class Main {
    private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    private static final PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args) throws IOException {
        for (int i = 1;; i++) {
            String x = br.readLine();
            if(x.equals("0")) break;
            out.println("Case "+i+": "+x);
        }
        out.flush();
    }
} Main private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) private static final PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) public static void main(String[] args) throws IOException {
        for (int i = 1;; i++) {
            String x = br.readLine();
            if(x.equals("0")) break;
            out.println("Case "+i+": "+x);
        }
        out.flush();
    } main {
        for (int i = 1;; i++) {
            String x = br.readLine();
            if(x.equals("0")) break;
            out.println("Case "+i+": "+x);
        }
        out.flush();
    } for (int i = 1;; i++) {
            String x = br.readLine();
            if(x.equals("0")) break;
            out.println("Case "+i+": "+x);
        } int i = 1; int i = 1; i 1 i++ i++ i {
            String x = br.readLine();
            if(x.equals("0")) break;
            out.println("Case "+i+": "+x);
        } {
            String x = br.readLine();
            if(x.equals("0")) break;
            out.println("Case "+i+": "+x);
        } String x = br.readLine(); x br.readLine() br.readLine br if(x.equals("0")) break; x.equals("0") x.equals x "0" break; out.println("Case "+i+": "+x) out.println out "Case "+i+": "+x ": " "Case "+i+": "+x "Case " i ": " x out.flush() out.flush out String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

class Main {
    private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    private static final PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args) throws IOException {
        for (int i = 1;; i++) {
            String x = br.readLine();
            if(x.equals("0")) break;
            out.println("Case "+i+": "+x);
        }
        out.flush();
    }
}