import java.io.*;
import java.util.StringTokenizer;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in));       
        String line = r.readLine();   
        
        int cnt=1;
        while(line!=null){ 
            int buf = Integer.parseInt(line);
            if (buf == 0) break;
            if (cnt > 10000) break;
            if (1 <= buf && buf <= 10000){
                System.out.println("Case "+cnt+": "+buf);
                cnt++;
            }
            line = r.readLine();
        }        
    }
} import java.io.*; io.* java import java.util.StringTokenizer; StringTokenizer java.util class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in));       
        String line = r.readLine();   
        
        int cnt=1;
        while(line!=null){ 
            int buf = Integer.parseInt(line);
            if (buf == 0) break;
            if (cnt > 10000) break;
            if (1 <= buf && buf <= 10000){
                System.out.println("Case "+cnt+": "+buf);
                cnt++;
            }
            line = r.readLine();
        }        
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in));       
        String line = r.readLine();   
        
        int cnt=1;
        while(line!=null){ 
            int buf = Integer.parseInt(line);
            if (buf == 0) break;
            if (cnt > 10000) break;
            if (1 <= buf && buf <= 10000){
                System.out.println("Case "+cnt+": "+buf);
                cnt++;
            }
            line = r.readLine();
        }        
    } main {
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in));       
        String line = r.readLine();   
        
        int cnt=1;
        while(line!=null){ 
            int buf = Integer.parseInt(line);
            if (buf == 0) break;
            if (cnt > 10000) break;
            if (1 <= buf && buf <= 10000){
                System.out.println("Case "+cnt+": "+buf);
                cnt++;
            }
            line = r.readLine();
        }        
    } BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) String line = r.readLine(); line r.readLine() r.readLine r int cnt=1; cnt 1 while(line!=null){ 
            int buf = Integer.parseInt(line);
            if (buf == 0) break;
            if (cnt > 10000) break;
            if (1 <= buf && buf <= 10000){
                System.out.println("Case "+cnt+": "+buf);
                cnt++;
            }
            line = r.readLine();
        } line!=null line null { 
            int buf = Integer.parseInt(line);
            if (buf == 0) break;
            if (cnt > 10000) break;
            if (1 <= buf && buf <= 10000){
                System.out.println("Case "+cnt+": "+buf);
                cnt++;
            }
            line = r.readLine();
        } int buf = Integer.parseInt(line); buf Integer.parseInt(line) Integer.parseInt Integer line if (buf == 0) break; buf == 0 buf 0 break; if (cnt > 10000) break; cnt > 10000 cnt 10000 break; if (1 <= buf && buf <= 10000){
                System.out.println("Case "+cnt+": "+buf);
                cnt++;
            } 1 <= buf && buf <= 10000 1 <= buf 1 buf buf <= 10000 buf 10000 {
                System.out.println("Case "+cnt+": "+buf);
                cnt++;
            } System.out.println("Case "+cnt+": "+buf) System.out.println System.out System System.out "Case "+cnt+": "+buf ": " "Case "+cnt+": "+buf "Case " cnt ": " buf cnt++ cnt line = r.readLine() line r.readLine() r.readLine r String[] args args
import java.io.*;
import java.util.StringTokenizer;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in));       
        String line = r.readLine();   
        
        int cnt=1;
        while(line!=null){ 
            int buf = Integer.parseInt(line);
            if (buf == 0) break;
            if (cnt > 10000) break;
            if (1 <= buf && buf <= 10000){
                System.out.println("Case "+cnt+": "+buf);
                cnt++;
            }
            line = r.readLine();
        }        
    }
}