import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		

		List<Integer> list = new ArrayList<Integer>();
		for (;;) {
			int num = scan.nextInt();
			if (num == 0) {
				break;
			}
			list.add(num);
		}

		int i = 1;
		for (Integer num : list) {
			System.out.printf("Case %d: %d\n", i++, num);
		}
		scan.close();

	}

} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		

		List<Integer> list = new ArrayList<Integer>();
		for (;;) {
			int num = scan.nextInt();
			if (num == 0) {
				break;
			}
			list.add(num);
		}

		int i = 1;
		for (Integer num : list) {
			System.out.printf("Case %d: %d\n", i++, num);
		}
		scan.close();

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		

		List<Integer> list = new ArrayList<Integer>();
		for (;;) {
			int num = scan.nextInt();
			if (num == 0) {
				break;
			}
			list.add(num);
		}

		int i = 1;
		for (Integer num : list) {
			System.out.printf("Case %d: %d\n", i++, num);
		}
		scan.close();

	} main {
		Scanner scan = new Scanner(System.in);		

		List<Integer> list = new ArrayList<Integer>();
		for (;;) {
			int num = scan.nextInt();
			if (num == 0) {
				break;
			}
			list.add(num);
		}

		int i = 1;
		for (Integer num : list) {
			System.out.printf("Case %d: %d\n", i++, num);
		}
		scan.close();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for (;;) {
			int num = scan.nextInt();
			if (num == 0) {
				break;
			}
			list.add(num);
		} ; {
			int num = scan.nextInt();
			if (num == 0) {
				break;
			}
			list.add(num);
		} {
			int num = scan.nextInt();
			if (num == 0) {
				break;
			}
			list.add(num);
		} int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan if (num == 0) {
				break;
			} num == 0 num 0 {
				break;
			} break; list.add(num) list.add list num int i = 1; i 1 for (Integer num : list) {
			System.out.printf("Case %d: %d\n", i++, num);
		} Integer num list {
			System.out.printf("Case %d: %d\n", i++, num);
		} {
			System.out.printf("Case %d: %d\n", i++, num);
		} System.out.printf("Case %d: %d\n", i++, num) System.out.printf System.out System System.out "Case %d: %d\n" i++ i num scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		

		List<Integer> list = new ArrayList<Integer>();
		for (;;) {
			int num = scan.nextInt();
			if (num == 0) {
				break;
			}
			list.add(num);
		}

		int i = 1;
		for (Integer num : list) {
			System.out.printf("Case %d: %d\n", i++, num);
		}
		scan.close();

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		

		List<Integer> list = new ArrayList<Integer>();
		for (;;) {
			int num = scan.nextInt();
			if (num == 0) {
				break;
			}
			list.add(num);
		}

		int i = 1;
		for (Integer num : list) {
			System.out.printf("Case %d: %d\n", i++, num);
		}
		scan.close();

	}

} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		

		List<Integer> list = new ArrayList<Integer>();
		for (;;) {
			int num = scan.nextInt();
			if (num == 0) {
				break;
			}
			list.add(num);
		}

		int i = 1;
		for (Integer num : list) {
			System.out.printf("Case %d: %d\n", i++, num);
		}
		scan.close();

	}

}