
import java.util.Scanner;

public class Main {
	void testcase(){
		Scanner s = new Scanner(System.in);
		int tmp;
		int cnt = 1;
		tmp = s.nextInt();
		while(tmp != 0){
			System.out.println("Case " + cnt + ": " + tmp);
			tmp = s.nextInt();
			cnt++;
		}
	}
	public static void main(String args[]){
		Main m = new Main();
		m.testcase();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void testcase(){
		Scanner s = new Scanner(System.in);
		int tmp;
		int cnt = 1;
		tmp = s.nextInt();
		while(tmp != 0){
			System.out.println("Case " + cnt + ": " + tmp);
			tmp = s.nextInt();
			cnt++;
		}
	}
	public static void main(String args[]){
		Main m = new Main();
		m.testcase();
	}
} Main void testcase(){
		Scanner s = new Scanner(System.in);
		int tmp;
		int cnt = 1;
		tmp = s.nextInt();
		while(tmp != 0){
			System.out.println("Case " + cnt + ": " + tmp);
			tmp = s.nextInt();
			cnt++;
		}
	} testcase {
		Scanner s = new Scanner(System.in);
		int tmp;
		int cnt = 1;
		tmp = s.nextInt();
		while(tmp != 0){
			System.out.println("Case " + cnt + ": " + tmp);
			tmp = s.nextInt();
			cnt++;
		}
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int tmp; tmp int cnt = 1; cnt 1 tmp = s.nextInt() tmp s.nextInt() s.nextInt s while(tmp != 0){
			System.out.println("Case " + cnt + ": " + tmp);
			tmp = s.nextInt();
			cnt++;
		} tmp != 0 tmp 0 {
			System.out.println("Case " + cnt + ": " + tmp);
			tmp = s.nextInt();
			cnt++;
		} System.out.println("Case " + cnt + ": " + tmp) System.out.println System.out System System.out "Case " + cnt + ": " + tmp ": " "Case " + cnt + ": " + tmp "Case " cnt ": " tmp tmp = s.nextInt() tmp s.nextInt() s.nextInt s cnt++ cnt public static void main(String args[]){
		Main m = new Main();
		m.testcase();
	} main {
		Main m = new Main();
		m.testcase();
	} Main m = new Main(); m new Main() m.testcase() m.testcase m String args[] args public class Main {
	void testcase(){
		Scanner s = new Scanner(System.in);
		int tmp;
		int cnt = 1;
		tmp = s.nextInt();
		while(tmp != 0){
			System.out.println("Case " + cnt + ": " + tmp);
			tmp = s.nextInt();
			cnt++;
		}
	}
	public static void main(String args[]){
		Main m = new Main();
		m.testcase();
	}
} public class Main {
	void testcase(){
		Scanner s = new Scanner(System.in);
		int tmp;
		int cnt = 1;
		tmp = s.nextInt();
		while(tmp != 0){
			System.out.println("Case " + cnt + ": " + tmp);
			tmp = s.nextInt();
			cnt++;
		}
	}
	public static void main(String args[]){
		Main m = new Main();
		m.testcase();
	}
} Main

import java.util.Scanner;

public class Main {
	void testcase(){
		Scanner s = new Scanner(System.in);
		int tmp;
		int cnt = 1;
		tmp = s.nextInt();
		while(tmp != 0){
			System.out.println("Case " + cnt + ": " + tmp);
			tmp = s.nextInt();
			cnt++;
		}
	}
	public static void main(String args[]){
		Main m = new Main();
		m.testcase();
	}
}