import java.util.Scanner;

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

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