
import java.util.Scanner;
 class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int result[] = new int[1000000],i = 0;
		while(true){
			result[i] = sc.nextInt();
			if(result[i] == 0) break;
			i++;
		}
		for(int j = 0; j < i; j++){
			System.out.println("Case "+(j+1)+": "+result[j]);
		}
	}
 }
  import java.util.Scanner; Scanner java.util class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int result[] = new int[1000000],i = 0;
		while(true){
			result[i] = sc.nextInt();
			if(result[i] == 0) break;
			i++;
		}
		for(int j = 0; j < i; j++){
			System.out.println("Case "+(j+1)+": "+result[j]);
		}
	}
 } Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int result[] = new int[1000000],i = 0;
		while(true){
			result[i] = sc.nextInt();
			if(result[i] == 0) break;
			i++;
		}
		for(int j = 0; j < i; j++){
			System.out.println("Case "+(j+1)+": "+result[j]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int result[] = new int[1000000],i = 0;
		while(true){
			result[i] = sc.nextInt();
			if(result[i] == 0) break;
			i++;
		}
		for(int j = 0; j < i; j++){
			System.out.println("Case "+(j+1)+": "+result[j]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int result[] = new int[1000000] result new int[1000000] 1000000 i = 0; i 0 while(true){
			result[i] = sc.nextInt();
			if(result[i] == 0) break;
			i++;
		} true {
			result[i] = sc.nextInt();
			if(result[i] == 0) break;
			i++;
		} result[i] = sc.nextInt() result[i] result i sc.nextInt() sc.nextInt sc if(result[i] == 0) break; result[i] == 0 result[i] result i 0 break; i++ i for(int j = 0; j < i; j++){
			System.out.println("Case "+(j+1)+": "+result[j]);
		} int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
			System.out.println("Case "+(j+1)+": "+result[j]);
		} {
			System.out.println("Case "+(j+1)+": "+result[j]);
		} System.out.println("Case "+(j+1)+": "+result[j]) System.out.println System.out System System.out "Case "+(j+1)+": "+result[j] ": " "Case "+(j+1)+": "+result[j] "Case " (j+1) j 1 ": " result[j] result j String args[] args

import java.util.Scanner;
 class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int result[] = new int[1000000],i = 0;
		while(true){
			result[i] = sc.nextInt();
			if(result[i] == 0) break;
			i++;
		}
		for(int j = 0; j < i; j++){
			System.out.println("Case "+(j+1)+": "+result[j]);
		}
	}
 }
 