import java.util.*;
class Main{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		int cnt=0,in;
		while(true) {
			cnt++;
			in = Integer.parseInt(s.next());
			if(in==0)
				return;
			System.out.printf("Case %d: %d\n",cnt,in);
		}
	}
} import java.util.*; util.* java class Main{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		int cnt=0,in;
		while(true) {
			cnt++;
			in = Integer.parseInt(s.next());
			if(in==0)
				return;
			System.out.printf("Case %d: %d\n",cnt,in);
		}
	}
} Main static Scanner s = new Scanner(System.in); s new Scanner(System.in) public static void main(String[] args) {
		int cnt=0,in;
		while(true) {
			cnt++;
			in = Integer.parseInt(s.next());
			if(in==0)
				return;
			System.out.printf("Case %d: %d\n",cnt,in);
		}
	} main {
		int cnt=0,in;
		while(true) {
			cnt++;
			in = Integer.parseInt(s.next());
			if(in==0)
				return;
			System.out.printf("Case %d: %d\n",cnt,in);
		}
	} int cnt=0 cnt 0 in; in while(true) {
			cnt++;
			in = Integer.parseInt(s.next());
			if(in==0)
				return;
			System.out.printf("Case %d: %d\n",cnt,in);
		} true {
			cnt++;
			in = Integer.parseInt(s.next());
			if(in==0)
				return;
			System.out.printf("Case %d: %d\n",cnt,in);
		} cnt++ cnt in = Integer.parseInt(s.next()) in Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s if(in==0)
				return; in==0 in 0 return; System.out.printf("Case %d: %d\n",cnt,in) System.out.printf System.out System System.out "Case %d: %d\n" cnt in String[] args args
import java.util.*;
class Main{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		int cnt=0,in;
		while(true) {
			cnt++;
			in = Integer.parseInt(s.next());
			if(in==0)
				return;
			System.out.printf("Case %d: %d\n",cnt,in);
		}
	}
}