import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {

	public static void main(String[] args) throws Exception{
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int i = 0;
        int x = 0;
        ArrayList<Integer> array = new ArrayList<Integer>();
        while(true){
        	line = br.readLine();
        	x = Integer.parseInt(line);
        	if(x == 0){
        		break;
        	}
        	array.add(x);
        	i++;
        }
        int N = i;
        for(i = 0;i<N;i++){
        	System.out.println("Case "+(i+1)+": "+array.get(i));
        }

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util public class Main {

	public static void main(String[] args) throws Exception{
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int i = 0;
        int x = 0;
        ArrayList<Integer> array = new ArrayList<Integer>();
        while(true){
        	line = br.readLine();
        	x = Integer.parseInt(line);
        	if(x == 0){
        		break;
        	}
        	array.add(x);
        	i++;
        }
        int N = i;
        for(i = 0;i<N;i++){
        	System.out.println("Case "+(i+1)+": "+array.get(i));
        }

	}

} Main public static void main(String[] args) throws Exception{
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int i = 0;
        int x = 0;
        ArrayList<Integer> array = new ArrayList<Integer>();
        while(true){
        	line = br.readLine();
        	x = Integer.parseInt(line);
        	if(x == 0){
        		break;
        	}
        	array.add(x);
        	i++;
        }
        int N = i;
        for(i = 0;i<N;i++){
        	System.out.println("Case "+(i+1)+": "+array.get(i));
        }

	} main {
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int i = 0;
        int x = 0;
        ArrayList<Integer> array = new ArrayList<Integer>();
        while(true){
        	line = br.readLine();
        	x = Integer.parseInt(line);
        	if(x == 0){
        		break;
        	}
        	array.add(x);
        	i++;
        }
        int N = i;
        for(i = 0;i<N;i++){
        	System.out.println("Case "+(i+1)+": "+array.get(i));
        }

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line; line int i = 0; i 0 int x = 0; x 0 ArrayList<Integer> array = new ArrayList<Integer>(); array new ArrayList<Integer>() while(true){
        	line = br.readLine();
        	x = Integer.parseInt(line);
        	if(x == 0){
        		break;
        	}
        	array.add(x);
        	i++;
        } true {
        	line = br.readLine();
        	x = Integer.parseInt(line);
        	if(x == 0){
        		break;
        	}
        	array.add(x);
        	i++;
        } line = br.readLine() line br.readLine() br.readLine br x = Integer.parseInt(line) x Integer.parseInt(line) Integer.parseInt Integer line if(x == 0){
        		break;
        	} x == 0 x 0 {
        		break;
        	} break; array.add(x) array.add array x i++ i int N = i; N i for(i = 0;i<N;i++){
        	System.out.println("Case "+(i+1)+": "+array.get(i));
        } i = 0; i = 0 i 0 i<N i N i++ i++ i {
        	System.out.println("Case "+(i+1)+": "+array.get(i));
        } {
        	System.out.println("Case "+(i+1)+": "+array.get(i));
        } System.out.println("Case "+(i+1)+": "+array.get(i)) System.out.println System.out System System.out "Case "+(i+1)+": "+array.get(i) ": " "Case "+(i+1)+": "+array.get(i) "Case " (i+1) i 1 ": " array.get(i) array.get array i String[] args args public class Main {

	public static void main(String[] args) throws Exception{
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int i = 0;
        int x = 0;
        ArrayList<Integer> array = new ArrayList<Integer>();
        while(true){
        	line = br.readLine();
        	x = Integer.parseInt(line);
        	if(x == 0){
        		break;
        	}
        	array.add(x);
        	i++;
        }
        int N = i;
        for(i = 0;i<N;i++){
        	System.out.println("Case "+(i+1)+": "+array.get(i));
        }

	}

} public class Main {

	public static void main(String[] args) throws Exception{
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int i = 0;
        int x = 0;
        ArrayList<Integer> array = new ArrayList<Integer>();
        while(true){
        	line = br.readLine();
        	x = Integer.parseInt(line);
        	if(x == 0){
        		break;
        	}
        	array.add(x);
        	i++;
        }
        int N = i;
        for(i = 0;i<N;i++){
        	System.out.println("Case "+(i+1)+": "+array.get(i));
        }

	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {

	public static void main(String[] args) throws Exception{
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int i = 0;
        int x = 0;
        ArrayList<Integer> array = new ArrayList<Integer>();
        while(true){
        	line = br.readLine();
        	x = Integer.parseInt(line);
        	if(x == 0){
        		break;
        	}
        	array.add(x);
        	i++;
        }
        int N = i;
        for(i = 0;i<N;i++){
        	System.out.println("Case "+(i+1)+": "+array.get(i));
        }

	}

}