public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int i = 1;
		do {
			int x = sc.nextInt();
			if (x == 0) { break; }
			sb.append("Case ").append(i).append(": ").append(x).append("\n");
			i++;
		} while (true);
		System.out.print(sb.toString());
	}
} public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int i = 1;
		do {
			int x = sc.nextInt();
			if (x == 0) { break; }
			sb.append("Case ").append(i).append(": ").append(x).append("\n");
			i++;
		} while (true);
		System.out.print(sb.toString());
	}
} Main public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int i = 1;
		do {
			int x = sc.nextInt();
			if (x == 0) { break; }
			sb.append("Case ").append(i).append(": ").append(x).append("\n");
			i++;
		} while (true);
		System.out.print(sb.toString());
	} main {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int i = 1;
		do {
			int x = sc.nextInt();
			if (x == 0) { break; }
			sb.append("Case ").append(i).append(": ").append(x).append("\n");
			i++;
		} while (true);
		System.out.print(sb.toString());
	} java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int i = 1; i 1 do {
			int x = sc.nextInt();
			if (x == 0) { break; }
			sb.append("Case ").append(i).append(": ").append(x).append("\n");
			i++;
		} while (true); true {
			int x = sc.nextInt();
			if (x == 0) { break; }
			sb.append("Case ").append(i).append(": ").append(x).append("\n");
			i++;
		} int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc if (x == 0) { break; } x == 0 x 0 { break; } break; sb.append("Case ").append(i).append(": ").append(x).append("\n") sb.append("Case ").append(i).append(": ").append(x).append sb.append("Case ").append(i).append(": ").append(x) sb.append("Case ").append(i).append(": ").append sb.append("Case ").append(i).append(": ") sb.append("Case ").append(i).append sb.append("Case ").append(i) sb.append("Case ").append sb.append("Case ") sb.append sb "Case " i ": " x "\n" i++ i System.out.print(sb.toString()) System.out.print System.out System System.out sb.toString() sb.toString sb String[] args args public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int i = 1;
		do {
			int x = sc.nextInt();
			if (x == 0) { break; }
			sb.append("Case ").append(i).append(": ").append(x).append("\n");
			i++;
		} while (true);
		System.out.print(sb.toString());
	}
} public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int i = 1;
		do {
			int x = sc.nextInt();
			if (x == 0) { break; }
			sb.append("Case ").append(i).append(": ").append(x).append("\n");
			i++;
		} while (true);
		System.out.print(sb.toString());
	}
} Main
public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int i = 1;
		do {
			int x = sc.nextInt();
			if (x == 0) { break; }
			sb.append("Case ").append(i).append(": ").append(x).append("\n");
			i++;
		} while (true);
		System.out.print(sb.toString());
	}
}