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

public class Main {

    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));

            String sStr;
            int i=1;
            while ( (sStr  = stdReader.readLine()) != null) {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            }

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));

            String sStr;
            int i=1;
            while ( (sStr  = stdReader.readLine()) != null) {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            }

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    }
} Main private final static String SPACE = " "; SPACE " " public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));

            String sStr;
            int i=1;
            while ( (sStr  = stdReader.readLine()) != null) {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            }

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    } main {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));

            String sStr;
            int i=1;
            while ( (sStr  = stdReader.readLine()) != null) {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            }

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    } try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));

            String sStr;
            int i=1;
            while ( (sStr  = stdReader.readLine()) != null) {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            }

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } catch (Exception e) {
            System.exit(-1);
        } Exception e {
            System.exit(-1);
        } System.exit(-1) System.exit System -1 1 {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));

            String sStr;
            int i=1;
            while ( (sStr  = stdReader.readLine()) != null) {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            }

            stdReader.close();
        } BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in)); stdReader new BufferedReader( new InputStreamReader(System.in)) String sStr; sStr int i=1; i 1 while ( (sStr  = stdReader.readLine()) != null) {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            } (sStr  = stdReader.readLine()) != null (sStr  = stdReader.readLine()) sStr stdReader.readLine() stdReader.readLine stdReader null {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            } int input=Integer.valueOf(sStr); input Integer.valueOf(sStr) Integer.valueOf Integer sStr if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                } input==0 input 0 {
                    // nothing to do..
                    break;
                } break; {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                } System.out.println("Case" + SPACE + i + ":" + SPACE + input  ) System.out.println System.out System System.out "Case" + SPACE + i + ":" + SPACE + input SPACE ":" i "Case" + SPACE + i + ":" + SPACE + input "Case" SPACE i ":" SPACE input ++i i stdReader.close() stdReader.close stdReader String[] args args public class Main {

    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));

            String sStr;
            int i=1;
            while ( (sStr  = stdReader.readLine()) != null) {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            }

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    }
} public class Main {

    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));

            String sStr;
            int i=1;
            while ( (sStr  = stdReader.readLine()) != null) {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            }

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = 
                    new BufferedReader( new InputStreamReader(System.in));

            String sStr;
            int i=1;
            while ( (sStr  = stdReader.readLine()) != null) {
                int input=Integer.valueOf(sStr);
                if (input==0) {
                    // nothing to do..
                    break;
                } else {
                    System.out.println("Case" + SPACE + i + ":" + SPACE + input  );
                }
                ++i;
            }

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } 
    }
}