import static java.lang.System.out;
import java.io.File;
import java.util.Scanner;

public class Main extends BaseExe {

    public static void main(String[] args) {
        new Main().exeSysIn();
    }

    @Override
    protected void execute() throws Exception {
        String data;
        for (int count = 1; count <= 10000; count++) {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        }
    }
}

abstract class BaseExe {

    private Scanner scan;

    private String inData;

    public void exeSysIn() {
        try (Scanner scan = new Scanner(System.in)) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void exeFileIn(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void exeCtrl(Scanner scan) throws Exception {
        this.scan = scan;
        execute();
    }

    protected abstract void execute() throws Exception;

    protected String nextLine() {
        return scan.nextLine();
    }

    protected boolean judgeInData() {
        return hasNextLine() && isNotEmptyInData();
    }

    protected boolean hasNextLine() {
        return scan.hasNextLine();
    }

    protected boolean isNotEmptyInData() {
        inData = nextLine();
        return !inData.isEmpty();
    }

    protected String getInData() throws Exception {
        if (inData.isEmpty())
            throw new Exception("inData is Empty.");
        return inData;
    }
} import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; import java.io.File; File java.io import java.util.Scanner; Scanner java.util public class Main extends BaseExe {

    public static void main(String[] args) {
        new Main().exeSysIn();
    }

    @Override
    protected void execute() throws Exception {
        String data;
        for (int count = 1; count <= 10000; count++) {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        }
    }
} Main public static void main(String[] args) {
        new Main().exeSysIn();
    } main {
        new Main().exeSysIn();
    } new Main().exeSysIn() new Main().exeSysIn new Main() String[] args args @Override
    protected void execute() throws Exception {
        String data;
        for (int count = 1; count <= 10000; count++) {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        }
    } execute {
        String data;
        for (int count = 1; count <= 10000; count++) {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        }
    } String data; data for (int count = 1; count <= 10000; count++) {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        } int count = 1; int count = 1; count 1 count <= 10000 count 10000 count++ count++ count {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        } {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        } if ("0".equals(data = nextLine()))
                break; "0".equals(data = nextLine()) "0".equals "0" data = nextLine() data nextLine() nextLine break; out.println("Case " + count + ": " + data) out.println out "Case " + count + ": " + data ": " "Case " + count + ": " + data "Case " count ": " data BaseExe abstract class BaseExe {

    private Scanner scan;

    private String inData;

    public void exeSysIn() {
        try (Scanner scan = new Scanner(System.in)) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void exeFileIn(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void exeCtrl(Scanner scan) throws Exception {
        this.scan = scan;
        execute();
    }

    protected abstract void execute() throws Exception;

    protected String nextLine() {
        return scan.nextLine();
    }

    protected boolean judgeInData() {
        return hasNextLine() && isNotEmptyInData();
    }

    protected boolean hasNextLine() {
        return scan.hasNextLine();
    }

    protected boolean isNotEmptyInData() {
        inData = nextLine();
        return !inData.isEmpty();
    }

    protected String getInData() throws Exception {
        if (inData.isEmpty())
            throw new Exception("inData is Empty.");
        return inData;
    }
} BaseExe private Scanner scan; scan private String inData; inData public void exeSysIn() {
        try (Scanner scan = new Scanner(System.in)) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    } exeSysIn {
        try (Scanner scan = new Scanner(System.in)) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    } try (Scanner scan = new Scanner(System.in)) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            exeCtrl(scan);
        } Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) exeCtrl(scan) exeCtrl scan public void exeFileIn(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    } exeFileIn {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    } try (Scanner scan = new Scanner(new File(inDataPath))) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            exeCtrl(scan);
        } Scanner scan = new Scanner(new File(inDataPath)) Scanner scan = new Scanner(new File(inDataPath)) new Scanner(new File(inDataPath)) exeCtrl(scan) exeCtrl scan String inDataPath inDataPath private void exeCtrl(Scanner scan) throws Exception {
        this.scan = scan;
        execute();
    } exeCtrl {
        this.scan = scan;
        execute();
    } this.scan = scan this.scan this this.scan scan execute() execute Scanner scan scan protected abstract void execute() throws Exception; execute protected String nextLine() {
        return scan.nextLine();
    } nextLine {
        return scan.nextLine();
    } return scan.nextLine(); scan.nextLine() scan.nextLine scan protected boolean judgeInData() {
        return hasNextLine() && isNotEmptyInData();
    } judgeInData {
        return hasNextLine() && isNotEmptyInData();
    } return hasNextLine() && isNotEmptyInData(); hasNextLine() && isNotEmptyInData() hasNextLine() hasNextLine isNotEmptyInData() isNotEmptyInData protected boolean hasNextLine() {
        return scan.hasNextLine();
    } hasNextLine {
        return scan.hasNextLine();
    } return scan.hasNextLine(); scan.hasNextLine() scan.hasNextLine scan protected boolean isNotEmptyInData() {
        inData = nextLine();
        return !inData.isEmpty();
    } isNotEmptyInData {
        inData = nextLine();
        return !inData.isEmpty();
    } inData = nextLine() inData nextLine() nextLine return !inData.isEmpty(); !inData.isEmpty() inData.isEmpty() inData.isEmpty inData protected String getInData() throws Exception {
        if (inData.isEmpty())
            throw new Exception("inData is Empty.");
        return inData;
    } getInData {
        if (inData.isEmpty())
            throw new Exception("inData is Empty.");
        return inData;
    } if (inData.isEmpty())
            throw new Exception("inData is Empty."); inData.isEmpty() inData.isEmpty inData throw new Exception("inData is Empty."); new Exception("inData is Empty.") return inData; inData public class Main extends BaseExe {

    public static void main(String[] args) {
        new Main().exeSysIn();
    }

    @Override
    protected void execute() throws Exception {
        String data;
        for (int count = 1; count <= 10000; count++) {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        }
    }
} public class Main extends BaseExe {

    public static void main(String[] args) {
        new Main().exeSysIn();
    }

    @Override
    protected void execute() throws Exception {
        String data;
        for (int count = 1; count <= 10000; count++) {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        }
    }
} Main
import static java.lang.System.out;
import java.io.File;
import java.util.Scanner;

public class Main extends BaseExe {

    public static void main(String[] args) {
        new Main().exeSysIn();
    }

    @Override
    protected void execute() throws Exception {
        String data;
        for (int count = 1; count <= 10000; count++) {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        }
    }
}

abstract class BaseExe {

    private Scanner scan;

    private String inData;

    public void exeSysIn() {
        try (Scanner scan = new Scanner(System.in)) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void exeFileIn(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void exeCtrl(Scanner scan) throws Exception {
        this.scan = scan;
        execute();
    }

    protected abstract void execute() throws Exception;

    protected String nextLine() {
        return scan.nextLine();
    }

    protected boolean judgeInData() {
        return hasNextLine() && isNotEmptyInData();
    }

    protected boolean hasNextLine() {
        return scan.hasNextLine();
    }

    protected boolean isNotEmptyInData() {
        inData = nextLine();
        return !inData.isEmpty();
    }

    protected String getInData() throws Exception {
        if (inData.isEmpty())
            throw new Exception("inData is Empty.");
        return inData;
    }
}