import java.io.*;
  
class Main{
    public static void main(String[] args) throws Exception{
        
        String str;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while((str = br.readLine()) != null){
            i++;
            if (str.equals("0")) {
                return;
            }
            System.out.println("Case " + i + ": " + str);
        }
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws Exception{
        
        String str;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while((str = br.readLine()) != null){
            i++;
            if (str.equals("0")) {
                return;
            }
            System.out.println("Case " + i + ": " + str);
        }
    }
} Main public static void main(String[] args) throws Exception{
        
        String str;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while((str = br.readLine()) != null){
            i++;
            if (str.equals("0")) {
                return;
            }
            System.out.println("Case " + i + ": " + str);
        }
    } main {
        
        String str;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while((str = br.readLine()) != null){
            i++;
            if (str.equals("0")) {
                return;
            }
            System.out.println("Case " + i + ": " + str);
        }
    } String str; str BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int i = 0; i 0 while((str = br.readLine()) != null){
            i++;
            if (str.equals("0")) {
                return;
            }
            System.out.println("Case " + i + ": " + str);
        } (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null {
            i++;
            if (str.equals("0")) {
                return;
            }
            System.out.println("Case " + i + ": " + str);
        } i++ i if (str.equals("0")) {
                return;
            } str.equals("0") str.equals str "0" {
                return;
            } return; System.out.println("Case " + i + ": " + str) System.out.println System.out System System.out "Case " + i + ": " + str ": " "Case " + i + ": " + str "Case " i ": " str String[] args args
import java.io.*;
  
class Main{
    public static void main(String[] args) throws Exception{
        
        String str;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int i = 0;
        while((str = br.readLine()) != null){
            i++;
            if (str.equals("0")) {
                return;
            }
            System.out.println("Case " + i + ": " + str);
        }
    }
}