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

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String x;
        int i=1;
        
        while(true){
            x = reader.readLine();
            if(Integer.parseInt(x)==0){
                break;
            }
            System.out.println("Case "+i+": "+Integer.parseInt(x));
            i++;
        }
    }
} 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 {
        // Here your code !
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String x;
        int i=1;
        
        while(true){
            x = reader.readLine();
            if(Integer.parseInt(x)==0){
                break;
            }
            System.out.println("Case "+i+": "+Integer.parseInt(x));
            i++;
        }
    }
} Main public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String x;
        int i=1;
        
        while(true){
            x = reader.readLine();
            if(Integer.parseInt(x)==0){
                break;
            }
            System.out.println("Case "+i+": "+Integer.parseInt(x));
            i++;
        }
    } main {
        // Here your code !
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String x;
        int i=1;
        
        while(true){
            x = reader.readLine();
            if(Integer.parseInt(x)==0){
                break;
            }
            System.out.println("Case "+i+": "+Integer.parseInt(x));
            i++;
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String x; x int i=1; i 1 while(true){
            x = reader.readLine();
            if(Integer.parseInt(x)==0){
                break;
            }
            System.out.println("Case "+i+": "+Integer.parseInt(x));
            i++;
        } true {
            x = reader.readLine();
            if(Integer.parseInt(x)==0){
                break;
            }
            System.out.println("Case "+i+": "+Integer.parseInt(x));
            i++;
        } x = reader.readLine() x reader.readLine() reader.readLine reader if(Integer.parseInt(x)==0){
                break;
            } Integer.parseInt(x)==0 Integer.parseInt(x) Integer.parseInt Integer x 0 {
                break;
            } break; System.out.println("Case "+i+": "+Integer.parseInt(x)) System.out.println System.out System System.out "Case "+i+": "+Integer.parseInt(x) ": " "Case "+i+": "+Integer.parseInt(x) "Case " i ": " Integer.parseInt(x) Integer.parseInt Integer x i++ i String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String x;
        int i=1;
        
        while(true){
            x = reader.readLine();
            if(Integer.parseInt(x)==0){
                break;
            }
            System.out.println("Case "+i+": "+Integer.parseInt(x));
            i++;
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String x;
        int i=1;
        
        while(true){
            x = reader.readLine();
            if(Integer.parseInt(x)==0){
                break;
            }
            System.out.println("Case "+i+": "+Integer.parseInt(x));
            i++;
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String x;
        int i=1;
        
        while(true){
            x = reader.readLine();
            if(Integer.parseInt(x)==0){
                break;
            }
            System.out.println("Case "+i+": "+Integer.parseInt(x));
            i++;
        }
    }
}