import java.io.*;

public class Main {

    public static void main(String[] args) {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {

            int cnt = 1;
            final int END = 0;
            
            while (true) {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            }

        } catch (IOException e) {

            e.printStackTrace();

        }
    }

} import java.io.*; io.* java public class Main {

    public static void main(String[] args) {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {

            int cnt = 1;
            final int END = 0;
            
            while (true) {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            }

        } catch (IOException e) {

            e.printStackTrace();

        }
    }

} Main public static void main(String[] args) {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {

            int cnt = 1;
            final int END = 0;
            
            while (true) {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            }

        } catch (IOException e) {

            e.printStackTrace();

        }
    } main {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {

            int cnt = 1;
            final int END = 0;
            
            while (true) {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            }

        } catch (IOException e) {

            e.printStackTrace();

        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try {

            int cnt = 1;
            final int END = 0;
            
            while (true) {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            }

        } catch (IOException e) {

            e.printStackTrace();

        } catch (IOException e) {

            e.printStackTrace();

        } IOException e {

            e.printStackTrace();

        } e.printStackTrace() e.printStackTrace e {

            int cnt = 1;
            final int END = 0;
            
            while (true) {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            }

        } int cnt = 1; cnt 1 final int END = 0; END 0 while (true) {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            } true {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            } String line = reader.readLine(); line reader.readLine() reader.readLine reader int num = Integer.parseInt(line); num Integer.parseInt(line) Integer.parseInt Integer line if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                } num == END num END {
                    break;
                } break; {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                } System.out.println("Case " + cnt + ": " + num) System.out.println System.out System System.out "Case " + cnt + ": " + num ": " "Case " + cnt + ": " + num "Case " cnt ": " num cnt++ cnt String[] args args public class Main {

    public static void main(String[] args) {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {

            int cnt = 1;
            final int END = 0;
            
            while (true) {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            }

        } catch (IOException e) {

            e.printStackTrace();

        }
    }

} public class Main {

    public static void main(String[] args) {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {

            int cnt = 1;
            final int END = 0;
            
            while (true) {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            }

        } catch (IOException e) {

            e.printStackTrace();

        }
    }

} Main
import java.io.*;

public class Main {

    public static void main(String[] args) {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {

            int cnt = 1;
            final int END = 0;
            
            while (true) {
                String line = reader.readLine();
                int num = Integer.parseInt(line);
                
                if (num == END) {
                    break;
                } else {
                    System.out.println("Case " + cnt + ": " + num);
                    cnt++;
                }
            }

        } catch (IOException e) {

            e.printStackTrace();

        }
    }

}