import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = "";
		int counter = 0;
		while(scan.hasNext()){
			str = scan.next();
			if(str.equals("0")) break;
			counter++;
			System.out.println("Case " + counter + ": " + str);

		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = "";
		int counter = 0;
		while(scan.hasNext()){
			str = scan.next();
			if(str.equals("0")) break;
			counter++;
			System.out.println("Case " + counter + ": " + str);

		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = "";
		int counter = 0;
		while(scan.hasNext()){
			str = scan.next();
			if(str.equals("0")) break;
			counter++;
			System.out.println("Case " + counter + ": " + str);

		}
	} main {
		Scanner scan = new Scanner(System.in);
		String str = "";
		int counter = 0;
		while(scan.hasNext()){
			str = scan.next();
			if(str.equals("0")) break;
			counter++;
			System.out.println("Case " + counter + ": " + str);

		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = ""; str "" int counter = 0; counter 0 while(scan.hasNext()){
			str = scan.next();
			if(str.equals("0")) break;
			counter++;
			System.out.println("Case " + counter + ": " + str);

		} scan.hasNext() scan.hasNext scan {
			str = scan.next();
			if(str.equals("0")) break;
			counter++;
			System.out.println("Case " + counter + ": " + str);

		} str = scan.next() str scan.next() scan.next scan if(str.equals("0")) break; str.equals("0") str.equals str "0" break; counter++ counter System.out.println("Case " + counter + ": " + str) System.out.println System.out System System.out "Case " + counter + ": " + str ": " "Case " + counter + ": " + str "Case " counter ": " str String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = "";
		int counter = 0;
		while(scan.hasNext()){
			str = scan.next();
			if(str.equals("0")) break;
			counter++;
			System.out.println("Case " + counter + ": " + str);

		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = "";
		int counter = 0;
		while(scan.hasNext()){
			str = scan.next();
			if(str.equals("0")) break;
			counter++;
			System.out.println("Case " + counter + ": " + str);

		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = "";
		int counter = 0;
		while(scan.hasNext()){
			str = scan.next();
			if(str.equals("0")) break;
			counter++;
			System.out.println("Case " + counter + ": " + str);

		}
	}
}