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

class Main {
    public static void main(String[] args) throws Exception {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String strArr;
        int a;
        int times=0;

        while(true){
        	times++;
        	strArr = br.readLine();
            a=Integer.parseInt(strArr);

            if(a!=0){
            	System.out.println("Case "+times+": "+a);
            }
            else{
            	System.exit(0);
            }
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    public static void main(String[] args) throws Exception {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String strArr;
        int a;
        int times=0;

        while(true){
        	times++;
        	strArr = br.readLine();
            a=Integer.parseInt(strArr);

            if(a!=0){
            	System.out.println("Case "+times+": "+a);
            }
            else{
            	System.exit(0);
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String strArr;
        int a;
        int times=0;

        while(true){
        	times++;
        	strArr = br.readLine();
            a=Integer.parseInt(strArr);

            if(a!=0){
            	System.out.println("Case "+times+": "+a);
            }
            else{
            	System.exit(0);
            }
        }
    } main {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String strArr;
        int a;
        int times=0;

        while(true){
        	times++;
        	strArr = br.readLine();
            a=Integer.parseInt(strArr);

            if(a!=0){
            	System.out.println("Case "+times+": "+a);
            }
            else{
            	System.exit(0);
            }
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strArr; strArr int a; a int times=0; times 0 while(true){
        	times++;
        	strArr = br.readLine();
            a=Integer.parseInt(strArr);

            if(a!=0){
            	System.out.println("Case "+times+": "+a);
            }
            else{
            	System.exit(0);
            }
        } true {
        	times++;
        	strArr = br.readLine();
            a=Integer.parseInt(strArr);

            if(a!=0){
            	System.out.println("Case "+times+": "+a);
            }
            else{
            	System.exit(0);
            }
        } times++ times strArr = br.readLine() strArr br.readLine() br.readLine br a=Integer.parseInt(strArr) a Integer.parseInt(strArr) Integer.parseInt Integer strArr if(a!=0){
            	System.out.println("Case "+times+": "+a);
            }
            else{
            	System.exit(0);
            } a!=0 a 0 {
            	System.out.println("Case "+times+": "+a);
            } System.out.println("Case "+times+": "+a) System.out.println System.out System System.out "Case "+times+": "+a ": " "Case "+times+": "+a "Case " times ": " a {
            	System.exit(0);
            } System.exit(0) System.exit System 0 String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
    public static void main(String[] args) throws Exception {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String strArr;
        int a;
        int times=0;

        while(true){
        	times++;
        	strArr = br.readLine();
            a=Integer.parseInt(strArr);

            if(a!=0){
            	System.out.println("Case "+times+": "+a);
            }
            else{
            	System.exit(0);
            }
        }
    }
}