import java.util.*;

class Main{
	public static void main(String args[]){
		int con = 1;
		Scanner scan = new Scanner(System.in);
		while(true){
			int num = scan.nextInt();
			if(num!=0){
				System.out.println("Case " + con + ": " + num);
				con++;
			}
			else{
				break;
			}
		}
	}
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
		int con = 1;
		Scanner scan = new Scanner(System.in);
		while(true){
			int num = scan.nextInt();
			if(num!=0){
				System.out.println("Case " + con + ": " + num);
				con++;
			}
			else{
				break;
			}
		}
	}
} Main public static void main(String args[]){
		int con = 1;
		Scanner scan = new Scanner(System.in);
		while(true){
			int num = scan.nextInt();
			if(num!=0){
				System.out.println("Case " + con + ": " + num);
				con++;
			}
			else{
				break;
			}
		}
	} main {
		int con = 1;
		Scanner scan = new Scanner(System.in);
		while(true){
			int num = scan.nextInt();
			if(num!=0){
				System.out.println("Case " + con + ": " + num);
				con++;
			}
			else{
				break;
			}
		}
	} int con = 1; con 1 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while(true){
			int num = scan.nextInt();
			if(num!=0){
				System.out.println("Case " + con + ": " + num);
				con++;
			}
			else{
				break;
			}
		} true {
			int num = scan.nextInt();
			if(num!=0){
				System.out.println("Case " + con + ": " + num);
				con++;
			}
			else{
				break;
			}
		} int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan if(num!=0){
				System.out.println("Case " + con + ": " + num);
				con++;
			}
			else{
				break;
			} num!=0 num 0 {
				System.out.println("Case " + con + ": " + num);
				con++;
			} System.out.println("Case " + con + ": " + num) System.out.println System.out System System.out "Case " + con + ": " + num ": " "Case " + con + ": " + num "Case " con ": " num con++ con {
				break;
			} break; String args[] args
import java.util.*;

class Main{
	public static void main(String args[]){
		int con = 1;
		Scanner scan = new Scanner(System.in);
		while(true){
			int num = scan.nextInt();
			if(num!=0){
				System.out.println("Case " + con + ": " + num);
				con++;
			}
			else{
				break;
			}
		}
	}
}