import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        while (sc.hasNext()) {
            int n = sc.nextInt();
            if (n == 0) {
                break;
            }
			
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        while (sc.hasNext()) {
            int n = sc.nextInt();
            if (n == 0) {
                break;
            }
			
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        while (sc.hasNext()) {
            int n = sc.nextInt();
            if (n == 0) {
                break;
            }
			
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }

	} main {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        while (sc.hasNext()) {
            int n = sc.nextInt();
            if (n == 0) {
                break;
            }
			
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = 1; i 1 while (sc.hasNext()) {
            int n = sc.nextInt();
            if (n == 0) {
                break;
            }
			
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        } sc.hasNext() sc.hasNext sc {
            int n = sc.nextInt();
            if (n == 0) {
                break;
            }
			
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if (n == 0) {
                break;
            } n == 0 n 0 {
                break;
            } break; System.out.println(String.format("Case %d: %d", i, n)) System.out.println System.out System System.out String.format("Case %d: %d", i, n) String.format String "Case %d: %d" i n i++ i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        while (sc.hasNext()) {
            int n = sc.nextInt();
            if (n == 0) {
                break;
            }
			
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }

	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        while (sc.hasNext()) {
            int n = sc.nextInt();
            if (n == 0) {
                break;
            }
			
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int i = 1;
        while (sc.hasNext()) {
            int n = sc.nextInt();
            if (n == 0) {
                break;
            }
			
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }

	}
}