import java.util.*;

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

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

 }
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int nums = 1;
		int num = 1;
		for(int i = 0; nums != 0 ; ++i,num++) {
			nums = scan.nextInt();
			if(nums == 0) break;
			System.out.println("Case " + num + ": " + nums);
		}

 } main {
		Scanner scan = new Scanner(System.in);
		int nums = 1;
		int num = 1;
		for(int i = 0; nums != 0 ; ++i,num++) {
			nums = scan.nextInt();
			if(nums == 0) break;
			System.out.println("Case " + num + ": " + nums);
		}

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

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

 }
} Main
import java.util.*;

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

 }
}