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

public class Main {

    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int count = 0;
            
            while(line.equals("0") == false){
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            }
            /*
            for (String str : strList) {
            	System.out.println("Case "+ (strList.indexOf(str) + 1) + ": " +str);
			}
            */
            br.close();
        } catch (IOException e) {
            System.err.println(e);
        }
    }
} 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) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int count = 0;
            
            while(line.equals("0") == false){
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            }
            /*
            for (String str : strList) {
            	System.out.println("Case "+ (strList.indexOf(str) + 1) + ": " +str);
			}
            */
            br.close();
        } catch (IOException e) {
            System.err.println(e);
        }
    }
} Main public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int count = 0;
            
            while(line.equals("0") == false){
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            }
            /*
            for (String str : strList) {
            	System.out.println("Case "+ (strList.indexOf(str) + 1) + ": " +str);
			}
            */
            br.close();
        } catch (IOException e) {
            System.err.println(e);
        }
    } main {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int count = 0;
            
            while(line.equals("0") == false){
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            }
            /*
            for (String str : strList) {
            	System.out.println("Case "+ (strList.indexOf(str) + 1) + ": " +str);
			}
            */
            br.close();
        } catch (IOException e) {
            System.err.println(e);
        }
    } try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int count = 0;
            
            while(line.equals("0") == false){
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            }
            /*
            for (String str : strList) {
            	System.out.println("Case "+ (strList.indexOf(str) + 1) + ": " +str);
			}
            */
            br.close();
        } catch (IOException e) {
            System.err.println(e);
        } catch (IOException e) {
            System.err.println(e);
        } IOException e {
            System.err.println(e);
        } System.err.println(e) System.err.println System.err System System.err e {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int count = 0;
            
            while(line.equals("0") == false){
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            }
            /*
            for (String str : strList) {
            	System.out.println("Case "+ (strList.indexOf(str) + 1) + ": " +str);
			}
            */
            br.close();
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br int count = 0; count 0 while(line.equals("0") == false){
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            } line.equals("0") == false line.equals("0") line.equals line "0" false {
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            } System.out.println("Case "+ ++count + ": " +line) System.out.println System.out System System.out "Case "+ ++count + ": " +line ": " "Case "+ ++count + ": " +line "Case " ++count count ": " line line = br.readLine() line br.readLine() br.readLine br br.close() br.close br String[] args args public class Main {

    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int count = 0;
            
            while(line.equals("0") == false){
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            }
            /*
            for (String str : strList) {
            	System.out.println("Case "+ (strList.indexOf(str) + 1) + ": " +str);
			}
            */
            br.close();
        } catch (IOException e) {
            System.err.println(e);
        }
    }
} public class Main {

    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int count = 0;
            
            while(line.equals("0") == false){
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            }
            /*
            for (String str : strList) {
            	System.out.println("Case "+ (strList.indexOf(str) + 1) + ": " +str);
			}
            */
            br.close();
        } catch (IOException e) {
            System.err.println(e);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int count = 0;
            
            while(line.equals("0") == false){
            	System.out.println("Case "+ ++count + ": " +line);
            	//strList.add(line);
                line = br.readLine();
            }
            /*
            for (String str : strList) {
            	System.out.println("Case "+ (strList.indexOf(str) + 1) + ": " +str);
			}
            */
            br.close();
        } catch (IOException e) {
            System.err.println(e);
        }
    }
}