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

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int su = 0;
		for(int i = 0;;i++){
			su = Integer.parseInt(br.readLine());
			if(su == 0){
				break;
			}
			System.out.println("Case "+ (i + 1) +": "+su);
		}
	}
} 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)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int su = 0;
		for(int i = 0;;i++){
			su = Integer.parseInt(br.readLine());
			if(su == 0){
				break;
			}
			System.out.println("Case "+ (i + 1) +": "+su);
		}
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int su = 0;
		for(int i = 0;;i++){
			su = Integer.parseInt(br.readLine());
			if(su == 0){
				break;
			}
			System.out.println("Case "+ (i + 1) +": "+su);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int su = 0;
		for(int i = 0;;i++){
			su = Integer.parseInt(br.readLine());
			if(su == 0){
				break;
			}
			System.out.println("Case "+ (i + 1) +": "+su);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int su = 0; su 0 for(int i = 0;;i++){
			su = Integer.parseInt(br.readLine());
			if(su == 0){
				break;
			}
			System.out.println("Case "+ (i + 1) +": "+su);
		} int i = 0; int i = 0; i 0 i++ i++ i {
			su = Integer.parseInt(br.readLine());
			if(su == 0){
				break;
			}
			System.out.println("Case "+ (i + 1) +": "+su);
		} {
			su = Integer.parseInt(br.readLine());
			if(su == 0){
				break;
			}
			System.out.println("Case "+ (i + 1) +": "+su);
		} su = Integer.parseInt(br.readLine()) su Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(su == 0){
				break;
			} su == 0 su 0 {
				break;
			} break; System.out.println("Case "+ (i + 1) +": "+su) System.out.println System.out System System.out "Case "+ (i + 1) +": "+su ": " "Case "+ (i + 1) +": "+su "Case " (i + 1) i 1 ": " su String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int su = 0;
		for(int i = 0;;i++){
			su = Integer.parseInt(br.readLine());
			if(su == 0){
				break;
			}
			System.out.println("Case "+ (i + 1) +": "+su);
		}
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int su = 0;
		for(int i = 0;;i++){
			su = Integer.parseInt(br.readLine());
			if(su == 0){
				break;
			}
			System.out.println("Case "+ (i + 1) +": "+su);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int su = 0;
		for(int i = 0;;i++){
			su = Integer.parseInt(br.readLine());
			if(su == 0){
				break;
			}
			System.out.println("Case "+ (i + 1) +": "+su);
		}
	}
}