import java.util.*;

public class Main {

    public static void main(String[] arg) {
        try {
            Scanner scan = new Scanner(System.in);
            int i = 1;
            while (scan.hasNext()) {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            }
        } catch (InputMismatchException ex) {
            System.out.println("??´??°?????\?????????????????????");
        }
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] arg) {
        try {
            Scanner scan = new Scanner(System.in);
            int i = 1;
            while (scan.hasNext()) {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            }
        } catch (InputMismatchException ex) {
            System.out.println("??´??°?????\?????????????????????");
        }
    }
} Main public static void main(String[] arg) {
        try {
            Scanner scan = new Scanner(System.in);
            int i = 1;
            while (scan.hasNext()) {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            }
        } catch (InputMismatchException ex) {
            System.out.println("??´??°?????\?????????????????????");
        }
    } main {
        try {
            Scanner scan = new Scanner(System.in);
            int i = 1;
            while (scan.hasNext()) {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            }
        } catch (InputMismatchException ex) {
            System.out.println("??´??°?????\?????????????????????");
        }
    } try {
            Scanner scan = new Scanner(System.in);
            int i = 1;
            while (scan.hasNext()) {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            }
        } catch (InputMismatchException ex) {
            System.out.println("??´??°?????\?????????????????????");
        } catch (InputMismatchException ex) {
            System.out.println("??´??°?????\?????????????????????");
        } InputMismatchException ex {
            System.out.println("??´??°?????\?????????????????????");
        } System.out.println("??´??°?????\?????????????????????") System.out.println System.out System System.out "??´??°?????\?????????????????????" {
            Scanner scan = new Scanner(System.in);
            int i = 1;
            while (scan.hasNext()) {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            }
        } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int i = 1; i 1 while (scan.hasNext()) {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            } scan.hasNext() scan.hasNext scan {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            } int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan if (i > 10000) {
                    break;
                } i > 10000 i 10000 {
                    break;
                } break; if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                } 0 < x && x < 10001 0 < x 0 x x < 10001 x 10001 {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                } System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x i++ i String[] arg arg public class Main {

    public static void main(String[] arg) {
        try {
            Scanner scan = new Scanner(System.in);
            int i = 1;
            while (scan.hasNext()) {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            }
        } catch (InputMismatchException ex) {
            System.out.println("??´??°?????\?????????????????????");
        }
    }
} public class Main {

    public static void main(String[] arg) {
        try {
            Scanner scan = new Scanner(System.in);
            int i = 1;
            while (scan.hasNext()) {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            }
        } catch (InputMismatchException ex) {
            System.out.println("??´??°?????\?????????????????????");
        }
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] arg) {
        try {
            Scanner scan = new Scanner(System.in);
            int i = 1;
            while (scan.hasNext()) {
                int x = scan.nextInt();
                if (i > 10000) {
                    break;
                }
                if (0 < x && x < 10001) {
                    System.out.println("Case " + i + ": " + x);
                    i++;
                }
            }
        } catch (InputMismatchException ex) {
            System.out.println("??´??°?????\?????????????????????");
        }
    }
}