import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
 
class Main {
    public static void main(String args[]) throws IOException{
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String t = "";
        int i = 1;
        t =  reader.readLine();
        while(!t.equals("0")){
            System.out.println("Case " + i + ": " + t);
            i++;
            t = reader.readLine();
        }
    }
} import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    public static void main(String args[]) throws IOException{
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String t = "";
        int i = 1;
        t =  reader.readLine();
        while(!t.equals("0")){
            System.out.println("Case " + i + ": " + t);
            i++;
            t = reader.readLine();
        }
    }
} Main public static void main(String args[]) throws IOException{
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String t = "";
        int i = 1;
        t =  reader.readLine();
        while(!t.equals("0")){
            System.out.println("Case " + i + ": " + t);
            i++;
            t = reader.readLine();
        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String t = "";
        int i = 1;
        t =  reader.readLine();
        while(!t.equals("0")){
            System.out.println("Case " + i + ": " + t);
            i++;
            t = reader.readLine();
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String t = ""; t "" int i = 1; i 1 t =  reader.readLine() t reader.readLine() reader.readLine reader while(!t.equals("0")){
            System.out.println("Case " + i + ": " + t);
            i++;
            t = reader.readLine();
        } !t.equals("0") t.equals("0") t.equals t "0" {
            System.out.println("Case " + i + ": " + t);
            i++;
            t = reader.readLine();
        } System.out.println("Case " + i + ": " + t) System.out.println System.out System System.out "Case " + i + ": " + t ": " "Case " + i + ": " + t "Case " i ": " t i++ i t = reader.readLine() t reader.readLine() reader.readLine reader String args[] args
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
 
class Main {
    public static void main(String args[]) throws IOException{
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String t = "";
        int i = 1;
        t =  reader.readLine();
        while(!t.equals("0")){
            System.out.println("Case " + i + ": " + t);
            i++;
            t = reader.readLine();
        }
    }
}