import java.io.*;

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while(true){
            i++;
            int n = Integer.parseInt(br.readLine());
            if(n == 0){
                break;
            }
            System.out.println("Case "+ i +": "+ n);
        }
    }
} import java.io.*; io.* java public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while(true){
            i++;
            int n = Integer.parseInt(br.readLine());
            if(n == 0){
                break;
            }
            System.out.println("Case "+ i +": "+ n);
        }
    }
} Main public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while(true){
            i++;
            int n = Integer.parseInt(br.readLine());
            if(n == 0){
                break;
            }
            System.out.println("Case "+ i +": "+ n);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while(true){
            i++;
            int n = Integer.parseInt(br.readLine());
            if(n == 0){
                break;
            }
            System.out.println("Case "+ i +": "+ n);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int i = 0; i 0 while(true){
            i++;
            int n = Integer.parseInt(br.readLine());
            if(n == 0){
                break;
            }
            System.out.println("Case "+ i +": "+ n);
        } true {
            i++;
            int n = Integer.parseInt(br.readLine());
            if(n == 0){
                break;
            }
            System.out.println("Case "+ i +": "+ n);
        } i++ i int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(n == 0){
                break;
            } n == 0 n 0 {
                break;
            } break; System.out.println("Case "+ i +": "+ n) System.out.println System.out System System.out "Case "+ i +": "+ n ": " "Case "+ i +": "+ n "Case " i ": " n String[]args args public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while(true){
            i++;
            int n = Integer.parseInt(br.readLine());
            if(n == 0){
                break;
            }
            System.out.println("Case "+ i +": "+ n);
        }
    }
} public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while(true){
            i++;
            int n = Integer.parseInt(br.readLine());
            if(n == 0){
                break;
            }
            System.out.println("Case "+ i +": "+ n);
        }
    }
} Main
import java.io.*;

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