import java.util.*;
public class Main {

    public static void main(String[] args) {
        //try {
          //  File inputFile = new File("src/ITP1/dataSetPTC.txt");
            Scanner scan = new Scanner(System.in);
            String caseStr = "Case ";
            String colonStr = ": ";
            int line = 1;
            while (scan.hasNext()) {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            }
        //} catch (FileNotFoundException e) {
        //    e.printStackTrace();
       // }
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        //try {
          //  File inputFile = new File("src/ITP1/dataSetPTC.txt");
            Scanner scan = new Scanner(System.in);
            String caseStr = "Case ";
            String colonStr = ": ";
            int line = 1;
            while (scan.hasNext()) {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            }
        //} catch (FileNotFoundException e) {
        //    e.printStackTrace();
       // }
    }
} Main public static void main(String[] args) {
        //try {
          //  File inputFile = new File("src/ITP1/dataSetPTC.txt");
            Scanner scan = new Scanner(System.in);
            String caseStr = "Case ";
            String colonStr = ": ";
            int line = 1;
            while (scan.hasNext()) {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            }
        //} catch (FileNotFoundException e) {
        //    e.printStackTrace();
       // }
    } main {
        //try {
          //  File inputFile = new File("src/ITP1/dataSetPTC.txt");
            Scanner scan = new Scanner(System.in);
            String caseStr = "Case ";
            String colonStr = ": ";
            int line = 1;
            while (scan.hasNext()) {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            }
        //} catch (FileNotFoundException e) {
        //    e.printStackTrace();
       // }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String caseStr = "Case "; caseStr "Case " String colonStr = ": "; colonStr ": " int line = 1; line 1 while (scan.hasNext()) {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            } scan.hasNext() scan.hasNext scan {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            } int inputNum = scan.nextInt(); inputNum scan.nextInt() scan.nextInt scan if(inputNum == 0) {
                    break;
                } inputNum == 0 inputNum 0 {
                    break;
                } break; System.out.println(caseStr + line + colonStr + inputNum) System.out.println System.out System System.out caseStr + line + colonStr + inputNum colonStr caseStr + line + colonStr + inputNum caseStr line colonStr inputNum line ++ line String[] args args public class Main {

    public static void main(String[] args) {
        //try {
          //  File inputFile = new File("src/ITP1/dataSetPTC.txt");
            Scanner scan = new Scanner(System.in);
            String caseStr = "Case ";
            String colonStr = ": ";
            int line = 1;
            while (scan.hasNext()) {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            }
        //} catch (FileNotFoundException e) {
        //    e.printStackTrace();
       // }
    }
} public class Main {

    public static void main(String[] args) {
        //try {
          //  File inputFile = new File("src/ITP1/dataSetPTC.txt");
            Scanner scan = new Scanner(System.in);
            String caseStr = "Case ";
            String colonStr = ": ";
            int line = 1;
            while (scan.hasNext()) {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            }
        //} catch (FileNotFoundException e) {
        //    e.printStackTrace();
       // }
    }
} Main
import java.util.*;
public class Main {

    public static void main(String[] args) {
        //try {
          //  File inputFile = new File("src/ITP1/dataSetPTC.txt");
            Scanner scan = new Scanner(System.in);
            String caseStr = "Case ";
            String colonStr = ": ";
            int line = 1;
            while (scan.hasNext()) {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            }
        //} catch (FileNotFoundException e) {
        //    e.printStackTrace();
       // }
    }
}