import java.io.*;

public class Main {
    public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            for(int i = 1; ; i++) {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            }
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            for(int i = 1; ; i++) {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            }
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            for(int i = 1; ; i++) {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            }
        } catch(IOException e) {
            e.printStackTrace();
        }
    } main {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            for(int i = 1; ; i++) {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            }
        } catch(IOException e) {
            e.printStackTrace();
        }
    } InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) try {
            for(int i = 1; ; i++) {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            }
        } catch(IOException e) {
            e.printStackTrace();
        } catch(IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            for(int i = 1; ; i++) {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            }
        } for(int i = 1; ; i++) {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            } int i = 1; int i = 1; i 1 i++ i++ i {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            } {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            } int x = Integer.parseInt(br.readLine()); x Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(x == 0) {
                    break;
                } x == 0 x 0 {
                    break;
                } break; System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x String[] args args public class Main {
    public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            for(int i = 1; ; i++) {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            }
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
} public class Main {
    public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            for(int i = 1; ; i++) {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            }
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            for(int i = 1; ; i++) {
                int x = Integer.parseInt(br.readLine());
                if(x == 0) {
                    break;
                }
                System.out.println("Case " + i + ": " + x);
            }
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
}