import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();

		int x;
		int i = 0;

		while ( 0 !=  ( x = sc.nextInt() ) ) {
			i++;
			sb.append("Case " + i + ": " + x + "\n");
		}

		System.out.print(sb);
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();

		int x;
		int i = 0;

		while ( 0 !=  ( x = sc.nextInt() ) ) {
			i++;
			sb.append("Case " + i + ": " + x + "\n");
		}

		System.out.print(sb);
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();

		int x;
		int i = 0;

		while ( 0 !=  ( x = sc.nextInt() ) ) {
			i++;
			sb.append("Case " + i + ": " + x + "\n");
		}

		System.out.print(sb);
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();

		int x;
		int i = 0;

		while ( 0 !=  ( x = sc.nextInt() ) ) {
			i++;
			sb.append("Case " + i + ": " + x + "\n");
		}

		System.out.print(sb);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int x; x int i = 0; i 0 while ( 0 !=  ( x = sc.nextInt() ) ) {
			i++;
			sb.append("Case " + i + ": " + x + "\n");
		} 0 !=  ( x = sc.nextInt() ) 0 ( x = sc.nextInt() ) x sc.nextInt() sc.nextInt sc {
			i++;
			sb.append("Case " + i + ": " + x + "\n");
		} i++ i sb.append("Case " + i + ": " + x + "\n") sb.append sb "Case " + i + ": " + x + "\n" x ": " "Case " + i + ": " + x + "\n" "Case " i ": " x "\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) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();

		int x;
		int i = 0;

		while ( 0 !=  ( x = sc.nextInt() ) ) {
			i++;
			sb.append("Case " + i + ": " + x + "\n");
		}

		System.out.print(sb);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();

		int x;
		int i = 0;

		while ( 0 !=  ( x = sc.nextInt() ) ) {
			i++;
			sb.append("Case " + i + ": " + x + "\n");
		}

		System.out.print(sb);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();

		int x;
		int i = 0;

		while ( 0 !=  ( x = sc.nextInt() ) ) {
			i++;
			sb.append("Case " + i + ": " + x + "\n");
		}

		System.out.print(sb);
	}

}