import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int count=1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0){break;}

			System.out.println("Case " + count + ": " + x);
			count++;
		}
		scan.close();

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int count=1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0){break;}

			System.out.println("Case " + count + ": " + x);
			count++;
		}
		scan.close();

	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int count=1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0){break;}

			System.out.println("Case " + count + ": " + x);
			count++;
		}
		scan.close();

	} main {
		Scanner scan = new Scanner(System.in);
		int count=1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0){break;}

			System.out.println("Case " + count + ": " + x);
			count++;
		}
		scan.close();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int count=1; count 1 int x; x while(true){
			x = scan.nextInt();
			if(x == 0){break;}

			System.out.println("Case " + count + ": " + x);
			count++;
		} true {
			x = scan.nextInt();
			if(x == 0){break;}

			System.out.println("Case " + count + ": " + x);
			count++;
		} x = scan.nextInt() x scan.nextInt() scan.nextInt scan if(x == 0){break;} x == 0 x 0 {break;} break; System.out.println("Case " + count + ": " + x) System.out.println System.out System System.out "Case " + count + ": " + x ": " "Case " + count + ": " + x "Case " count ": " x count++ count scan.close() scan.close scan String args[] args public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int count=1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0){break;}

			System.out.println("Case " + count + ": " + x);
			count++;
		}
		scan.close();

	}
} public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int count=1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0){break;}

			System.out.println("Case " + count + ": " + x);
			count++;
		}
		scan.close();

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int count=1;
		int x;
		while(true){
			x = scan.nextInt();
			if(x == 0){break;}

			System.out.println("Case " + count + ": " + x);
			count++;
		}
		scan.close();

	}
}