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

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        int x[] = new int[10000];
        int i=0;
        try{
            while(!(str = br.readLine()).equals("0")){
                x[i] = Integer.parseInt(str);
                i++;
            }
        }catch(IOException e){
            
        }
        for(int j=0;j<i;j++){
            System.out.println("Case "+(j+1)+": "+x[j]);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        int x[] = new int[10000];
        int i=0;
        try{
            while(!(str = br.readLine()).equals("0")){
                x[i] = Integer.parseInt(str);
                i++;
            }
        }catch(IOException e){
            
        }
        for(int j=0;j<i;j++){
            System.out.println("Case "+(j+1)+": "+x[j]);
        }
    }
} Main public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        int x[] = new int[10000];
        int i=0;
        try{
            while(!(str = br.readLine()).equals("0")){
                x[i] = Integer.parseInt(str);
                i++;
            }
        }catch(IOException e){
            
        }
        for(int j=0;j<i;j++){
            System.out.println("Case "+(j+1)+": "+x[j]);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        int x[] = new int[10000];
        int i=0;
        try{
            while(!(str = br.readLine()).equals("0")){
                x[i] = Integer.parseInt(str);
                i++;
            }
        }catch(IOException e){
            
        }
        for(int j=0;j<i;j++){
            System.out.println("Case "+(j+1)+": "+x[j]);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str int x[] = new int[10000]; x new int[10000] 10000 int i=0; i 0 try{
            while(!(str = br.readLine()).equals("0")){
                x[i] = Integer.parseInt(str);
                i++;
            }
        }catch(IOException e){
            
        } catch(IOException e){
            
        } IOException e {
            
        } {
            while(!(str = br.readLine()).equals("0")){
                x[i] = Integer.parseInt(str);
                i++;
            }
        } while(!(str = br.readLine()).equals("0")){
                x[i] = Integer.parseInt(str);
                i++;
            } !(str = br.readLine()).equals("0") (str = br.readLine()).equals("0") (str = br.readLine()).equals (str = br.readLine()) str br.readLine() br.readLine br "0" {
                x[i] = Integer.parseInt(str);
                i++;
            } x[i] = Integer.parseInt(str) x[i] x i Integer.parseInt(str) Integer.parseInt Integer str i++ i for(int j=0;j<i;j++){
            System.out.println("Case "+(j+1)+": "+x[j]);
        } int j=0; int j=0; j 0 j<i j i j++ j++ j {
            System.out.println("Case "+(j+1)+": "+x[j]);
        } {
            System.out.println("Case "+(j+1)+": "+x[j]);
        } System.out.println("Case "+(j+1)+": "+x[j]) System.out.println System.out System System.out "Case "+(j+1)+": "+x[j] ": " "Case "+(j+1)+": "+x[j] "Case " (j+1) j 1 ": " x[j] x j String[] args args public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        int x[] = new int[10000];
        int i=0;
        try{
            while(!(str = br.readLine()).equals("0")){
                x[i] = Integer.parseInt(str);
                i++;
            }
        }catch(IOException e){
            
        }
        for(int j=0;j<i;j++){
            System.out.println("Case "+(j+1)+": "+x[j]);
        }
    }
} public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        int x[] = new int[10000];
        int i=0;
        try{
            while(!(str = br.readLine()).equals("0")){
                x[i] = Integer.parseInt(str);
                i++;
            }
        }catch(IOException e){
            
        }
        for(int j=0;j<i;j++){
            System.out.println("Case "+(j+1)+": "+x[j]);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        int x[] = new int[10000];
        int i=0;
        try{
            while(!(str = br.readLine()).equals("0")){
                x[i] = Integer.parseInt(str);
                i++;
            }
        }catch(IOException e){
            
        }
        for(int j=0;j<i;j++){
            System.out.println("Case "+(j+1)+": "+x[j]);
        }
    }
}