import java.util.*;
class Main {
	public static void main (String[] args) throws java.lang.Exception {
		Scanner sc = new Scanner(System.in);
		int a, c = 0;
		while(true) {
			a = sc.nextInt();
			if(a == 0) break;
			System.out.println("Case " + (++c) + ": " + a);
		}
	}
} import java.util.*; util.* java class Main {
	public static void main (String[] args) throws java.lang.Exception {
		Scanner sc = new Scanner(System.in);
		int a, c = 0;
		while(true) {
			a = sc.nextInt();
			if(a == 0) break;
			System.out.println("Case " + (++c) + ": " + a);
		}
	}
} Main public static void main (String[] args) throws java.lang.Exception {
		Scanner sc = new Scanner(System.in);
		int a, c = 0;
		while(true) {
			a = sc.nextInt();
			if(a == 0) break;
			System.out.println("Case " + (++c) + ": " + a);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int a, c = 0;
		while(true) {
			a = sc.nextInt();
			if(a == 0) break;
			System.out.println("Case " + (++c) + ": " + a);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a c = 0; c 0 while(true) {
			a = sc.nextInt();
			if(a == 0) break;
			System.out.println("Case " + (++c) + ": " + a);
		} true {
			a = sc.nextInt();
			if(a == 0) break;
			System.out.println("Case " + (++c) + ": " + a);
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc if(a == 0) break; a == 0 a 0 break; System.out.println("Case " + (++c) + ": " + a) System.out.println System.out System System.out "Case " + (++c) + ": " + a ": " "Case " + (++c) + ": " + a "Case " (++c) c ": " a String[] args args
import java.util.*;
class Main {
	public static void main (String[] args) throws java.lang.Exception {
		Scanner sc = new Scanner(System.in);
		int a, c = 0;
		while(true) {
			a = sc.nextInt();
			if(a == 0) break;
			System.out.println("Case " + (++c) + ": " + a);
		}
	}
}