import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		
		while (true ){
		String str = br.readLine();
		int a = Integer.parseInt(str);
		if (a == 0 ) break;
		list.add(a);
		}
		
		for (int i = 1 ; i-1 < list.size() ; i++){
			System.out.println("Case " + i + ": " + list.get(i-1));
		}

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		
		while (true ){
		String str = br.readLine();
		int a = Integer.parseInt(str);
		if (a == 0 ) break;
		list.add(a);
		}
		
		for (int i = 1 ; i-1 < list.size() ; i++){
			System.out.println("Case " + i + ": " + list.get(i-1));
		}

	}

} Main public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		
		while (true ){
		String str = br.readLine();
		int a = Integer.parseInt(str);
		if (a == 0 ) break;
		list.add(a);
		}
		
		for (int i = 1 ; i-1 < list.size() ; i++){
			System.out.println("Case " + i + ": " + list.get(i-1));
		}

	} main {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		
		while (true ){
		String str = br.readLine();
		int a = Integer.parseInt(str);
		if (a == 0 ) break;
		list.add(a);
		}
		
		for (int i = 1 ; i-1 < list.size() ; i++){
			System.out.println("Case " + i + ": " + list.get(i-1));
		}

	} BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() while (true ){
		String str = br.readLine();
		int a = Integer.parseInt(str);
		if (a == 0 ) break;
		list.add(a);
		} true {
		String str = br.readLine();
		int a = Integer.parseInt(str);
		if (a == 0 ) break;
		list.add(a);
		} String str = br.readLine(); str br.readLine() br.readLine br int a = Integer.parseInt(str); a Integer.parseInt(str) Integer.parseInt Integer str if (a == 0 ) break; a == 0 a 0 break; list.add(a) list.add list a for (int i = 1 ; i-1 < list.size() ; i++){
			System.out.println("Case " + i + ": " + list.get(i-1));
		} int i = 1 ; int i = 1 ; i 1 i-1 < list.size() i-1 i 1 list.size() list.size list i++ i++ i {
			System.out.println("Case " + i + ": " + list.get(i-1));
		} {
			System.out.println("Case " + i + ": " + list.get(i-1));
		} System.out.println("Case " + i + ": " + list.get(i-1)) System.out.println System.out System System.out "Case " + i + ": " + list.get(i-1) ": " "Case " + i + ": " + list.get(i-1) "Case " i ": " list.get(i-1) list.get list i-1 i 1 String[] args args public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		
		while (true ){
		String str = br.readLine();
		int a = Integer.parseInt(str);
		if (a == 0 ) break;
		list.add(a);
		}
		
		for (int i = 1 ; i-1 < list.size() ; i++){
			System.out.println("Case " + i + ": " + list.get(i-1));
		}

	}

} public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		
		while (true ){
		String str = br.readLine();
		int a = Integer.parseInt(str);
		if (a == 0 ) break;
		list.add(a);
		}
		
		for (int i = 1 ; i-1 < list.size() ; i++){
			System.out.println("Case " + i + ": " + list.get(i-1));
		}

	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		
		while (true ){
		String str = br.readLine();
		int a = Integer.parseInt(str);
		if (a == 0 ) break;
		list.add(a);
		}
		
		for (int i = 1 ; i-1 < list.size() ; i++){
			System.out.println("Case " + i + ": " + list.get(i-1));
		}

	}

}