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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder();
        
        int i = 1;
        
        while(true){
            int line = Integer.parseInt(br.readLine());
            if(line == 0){
                break;
            }
            
            st.append("Case ").append(i).append(": ").append(line).append("\n");
            i++;
        }
        
        System.out.print(st);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder();
        
        int i = 1;
        
        while(true){
            int line = Integer.parseInt(br.readLine());
            if(line == 0){
                break;
            }
            
            st.append("Case ").append(i).append(": ").append(line).append("\n");
            i++;
        }
        
        System.out.print(st);
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder();
        
        int i = 1;
        
        while(true){
            int line = Integer.parseInt(br.readLine());
            if(line == 0){
                break;
            }
            
            st.append("Case ").append(i).append(": ").append(line).append("\n");
            i++;
        }
        
        System.out.print(st);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder();
        
        int i = 1;
        
        while(true){
            int line = Integer.parseInt(br.readLine());
            if(line == 0){
                break;
            }
            
            st.append("Case ").append(i).append(": ").append(line).append("\n");
            i++;
        }
        
        System.out.print(st);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder st = new StringBuilder(); st new StringBuilder() int i = 1; i 1 while(true){
            int line = Integer.parseInt(br.readLine());
            if(line == 0){
                break;
            }
            
            st.append("Case ").append(i).append(": ").append(line).append("\n");
            i++;
        } true {
            int line = Integer.parseInt(br.readLine());
            if(line == 0){
                break;
            }
            
            st.append("Case ").append(i).append(": ").append(line).append("\n");
            i++;
        } int line = Integer.parseInt(br.readLine()); line Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(line == 0){
                break;
            } line == 0 line 0 {
                break;
            } break; st.append("Case ").append(i).append(": ").append(line).append("\n") st.append("Case ").append(i).append(": ").append(line).append st.append("Case ").append(i).append(": ").append(line) st.append("Case ").append(i).append(": ").append st.append("Case ").append(i).append(": ") st.append("Case ").append(i).append st.append("Case ").append(i) st.append("Case ").append st.append("Case ") st.append st "Case " i ": " line "\n" i++ i System.out.print(st) System.out.print System.out System System.out st String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder();
        
        int i = 1;
        
        while(true){
            int line = Integer.parseInt(br.readLine());
            if(line == 0){
                break;
            }
            
            st.append("Case ").append(i).append(": ").append(line).append("\n");
            i++;
        }
        
        System.out.print(st);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder();
        
        int i = 1;
        
        while(true){
            int line = Integer.parseInt(br.readLine());
            if(line == 0){
                break;
            }
            
            st.append("Case ").append(i).append(": ").append(line).append("\n");
            i++;
        }
        
        System.out.print(st);
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder();
        
        int i = 1;
        
        while(true){
            int line = Integer.parseInt(br.readLine());
            if(line == 0){
                break;
            }
            
            st.append("Case ").append(i).append(": ").append(line).append("\n");
            i++;
        }
        
        System.out.print(st);
    }
}