import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	int x =0;
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
	int ii = 0;
		while(scan.hasNextInt()){
			x = scan.nextInt();			
			if(x == 0){
				break;
			}
			else{
				list.add(x);
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println("Case "+(i+1)+": "+list.get(i));
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java class Main{
	public static void main(String[] args){
	int x =0;
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
	int ii = 0;
		while(scan.hasNextInt()){
			x = scan.nextInt();			
			if(x == 0){
				break;
			}
			else{
				list.add(x);
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println("Case "+(i+1)+": "+list.get(i));
		}
	}
} Main public static void main(String[] args){
	int x =0;
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
	int ii = 0;
		while(scan.hasNextInt()){
			x = scan.nextInt();			
			if(x == 0){
				break;
			}
			else{
				list.add(x);
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println("Case "+(i+1)+": "+list.get(i));
		}
	} main {
	int x =0;
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
	int ii = 0;
		while(scan.hasNextInt()){
			x = scan.nextInt();			
			if(x == 0){
				break;
			}
			else{
				list.add(x);
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println("Case "+(i+1)+": "+list.get(i));
		}
	} int x =0; x 0 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() int ii = 0; ii 0 while(scan.hasNextInt()){
			x = scan.nextInt();			
			if(x == 0){
				break;
			}
			else{
				list.add(x);
			}
		} scan.hasNextInt() scan.hasNextInt scan {
			x = scan.nextInt();			
			if(x == 0){
				break;
			}
			else{
				list.add(x);
			}
		} x = scan.nextInt() x scan.nextInt() scan.nextInt scan if(x == 0){
				break;
			}
			else{
				list.add(x);
			} x == 0 x 0 {
				break;
			} break; {
				list.add(x);
			} list.add(x) list.add list x for(int i=0;i<list.size();i++){
			System.out.println("Case "+(i+1)+": "+list.get(i));
		} int i=0; int i=0; i 0 i<list.size() i list.size() list.size list i++ i++ i {
			System.out.println("Case "+(i+1)+": "+list.get(i));
		} {
			System.out.println("Case "+(i+1)+": "+list.get(i));
		} System.out.println("Case "+(i+1)+": "+list.get(i)) System.out.println System.out System System.out "Case "+(i+1)+": "+list.get(i) ": " "Case "+(i+1)+": "+list.get(i) "Case " (i+1) i 1 ": " list.get(i) list.get list i String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	int x =0;
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
	int ii = 0;
		while(scan.hasNextInt()){
			x = scan.nextInt();			
			if(x == 0){
				break;
			}
			else{
				list.add(x);
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println("Case "+(i+1)+": "+list.get(i));
		}
	}
}