import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		ArrayList<Integer> x = new ArrayList<Integer>();
		int tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);
//		sc.useDelimiter("\\r\\n");

		tmp = sc.nextInt();
		x.add(tmp);
		cnt++;

		while(tmp!=0){
			sc.hasNext();
			tmp = sc.nextInt();
			x.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println("Case "+ (i+1) +": "+ x.get(i));
		}
		sc.close();
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		ArrayList<Integer> x = new ArrayList<Integer>();
		int tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);
//		sc.useDelimiter("\\r\\n");

		tmp = sc.nextInt();
		x.add(tmp);
		cnt++;

		while(tmp!=0){
			sc.hasNext();
			tmp = sc.nextInt();
			x.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println("Case "+ (i+1) +": "+ x.get(i));
		}
		sc.close();
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		ArrayList<Integer> x = new ArrayList<Integer>();
		int tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);
//		sc.useDelimiter("\\r\\n");

		tmp = sc.nextInt();
		x.add(tmp);
		cnt++;

		while(tmp!=0){
			sc.hasNext();
			tmp = sc.nextInt();
			x.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println("Case "+ (i+1) +": "+ x.get(i));
		}
		sc.close();
	} main {
		// TODO ?????????????????????????????????????????????
		ArrayList<Integer> x = new ArrayList<Integer>();
		int tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);
//		sc.useDelimiter("\\r\\n");

		tmp = sc.nextInt();
		x.add(tmp);
		cnt++;

		while(tmp!=0){
			sc.hasNext();
			tmp = sc.nextInt();
			x.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println("Case "+ (i+1) +": "+ x.get(i));
		}
		sc.close();
	} ArrayList<Integer> x = new ArrayList<Integer>(); x new ArrayList<Integer>() int tmp; tmp int cnt = 0; cnt 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) tmp = sc.nextInt() tmp sc.nextInt() sc.nextInt sc x.add(tmp) x.add x tmp cnt++ cnt while(tmp!=0){
			sc.hasNext();
			tmp = sc.nextInt();
			x.add(tmp);
			cnt++;
		} tmp!=0 tmp 0 {
			sc.hasNext();
			tmp = sc.nextInt();
			x.add(tmp);
			cnt++;
		} sc.hasNext() sc.hasNext sc tmp = sc.nextInt() tmp sc.nextInt() sc.nextInt sc x.add(tmp) x.add x tmp cnt++ cnt for(int i=0;i<cnt-1;i++){
			System.out.println("Case "+ (i+1) +": "+ x.get(i));
		} int i=0; int i=0; i 0 i<cnt-1 i cnt-1 cnt 1 i++ i++ i {
			System.out.println("Case "+ (i+1) +": "+ x.get(i));
		} {
			System.out.println("Case "+ (i+1) +": "+ x.get(i));
		} System.out.println("Case "+ (i+1) +": "+ x.get(i)) System.out.println System.out System System.out "Case "+ (i+1) +": "+ x.get(i) ": " "Case "+ (i+1) +": "+ x.get(i) "Case " (i+1) i 1 ": " x.get(i) x.get x i sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		ArrayList<Integer> x = new ArrayList<Integer>();
		int tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);
//		sc.useDelimiter("\\r\\n");

		tmp = sc.nextInt();
		x.add(tmp);
		cnt++;

		while(tmp!=0){
			sc.hasNext();
			tmp = sc.nextInt();
			x.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println("Case "+ (i+1) +": "+ x.get(i));
		}
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		ArrayList<Integer> x = new ArrayList<Integer>();
		int tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);
//		sc.useDelimiter("\\r\\n");

		tmp = sc.nextInt();
		x.add(tmp);
		cnt++;

		while(tmp!=0){
			sc.hasNext();
			tmp = sc.nextInt();
			x.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println("Case "+ (i+1) +": "+ x.get(i));
		}
		sc.close();
	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		ArrayList<Integer> x = new ArrayList<Integer>();
		int tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);
//		sc.useDelimiter("\\r\\n");

		tmp = sc.nextInt();
		x.add(tmp);
		cnt++;

		while(tmp!=0){
			sc.hasNext();
			tmp = sc.nextInt();
			x.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println("Case "+ (i+1) +": "+ x.get(i));
		}
		sc.close();
	}

}