
import java.io.*;
import java.util.*;

public class Main {
	public static void main(String args[]) throws IOException {
		//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Scanner scan = new Scanner(System.in);
		StringBuilder b = new StringBuilder();


		
		int i,s;
		i = 0;

		while(true){
			i++;
			s = scan.nextInt();
			//s = Integer.parseInt(br.readLine());
			if(s == 0){break;}
			
			//str = str+ "Case " + Integer.toString(i) + ": " + str + "\n";
			
			b.append("Case ");
			b.append(Integer.toString(i));
			b.append(": ");
			b.append(Integer.toString(s));
			b.append("\n");
			
			
			
		}

		System.out.print(new String(b));

	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String args[]) throws IOException {
		//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Scanner scan = new Scanner(System.in);
		StringBuilder b = new StringBuilder();


		
		int i,s;
		i = 0;

		while(true){
			i++;
			s = scan.nextInt();
			//s = Integer.parseInt(br.readLine());
			if(s == 0){break;}
			
			//str = str+ "Case " + Integer.toString(i) + ": " + str + "\n";
			
			b.append("Case ");
			b.append(Integer.toString(i));
			b.append(": ");
			b.append(Integer.toString(s));
			b.append("\n");
			
			
			
		}

		System.out.print(new String(b));

	}
} Main public static void main(String args[]) throws IOException {
		//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Scanner scan = new Scanner(System.in);
		StringBuilder b = new StringBuilder();


		
		int i,s;
		i = 0;

		while(true){
			i++;
			s = scan.nextInt();
			//s = Integer.parseInt(br.readLine());
			if(s == 0){break;}
			
			//str = str+ "Case " + Integer.toString(i) + ": " + str + "\n";
			
			b.append("Case ");
			b.append(Integer.toString(i));
			b.append(": ");
			b.append(Integer.toString(s));
			b.append("\n");
			
			
			
		}

		System.out.print(new String(b));

	} main {
		//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Scanner scan = new Scanner(System.in);
		StringBuilder b = new StringBuilder();


		
		int i,s;
		i = 0;

		while(true){
			i++;
			s = scan.nextInt();
			//s = Integer.parseInt(br.readLine());
			if(s == 0){break;}
			
			//str = str+ "Case " + Integer.toString(i) + ": " + str + "\n";
			
			b.append("Case ");
			b.append(Integer.toString(i));
			b.append(": ");
			b.append(Integer.toString(s));
			b.append("\n");
			
			
			
		}

		System.out.print(new String(b));

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) StringBuilder b = new StringBuilder(); b new StringBuilder() int i i s; s i = 0 i 0 while(true){
			i++;
			s = scan.nextInt();
			//s = Integer.parseInt(br.readLine());
			if(s == 0){break;}
			
			//str = str+ "Case " + Integer.toString(i) + ": " + str + "\n";
			
			b.append("Case ");
			b.append(Integer.toString(i));
			b.append(": ");
			b.append(Integer.toString(s));
			b.append("\n");
			
			
			
		} true {
			i++;
			s = scan.nextInt();
			//s = Integer.parseInt(br.readLine());
			if(s == 0){break;}
			
			//str = str+ "Case " + Integer.toString(i) + ": " + str + "\n";
			
			b.append("Case ");
			b.append(Integer.toString(i));
			b.append(": ");
			b.append(Integer.toString(s));
			b.append("\n");
			
			
			
		} i++ i s = scan.nextInt() s scan.nextInt() scan.nextInt scan if(s == 0){break;} s == 0 s 0 {break;} break; b.append("Case ") b.append b "Case " b.append(Integer.toString(i)) b.append b Integer.toString(i) Integer.toString Integer i b.append(": ") b.append b ": " b.append(Integer.toString(s)) b.append b Integer.toString(s) Integer.toString Integer s b.append("\n") b.append b "\n" System.out.print(new String(b)) System.out.print System.out System System.out new String(b) String args[] args public class Main {
	public static void main(String args[]) throws IOException {
		//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Scanner scan = new Scanner(System.in);
		StringBuilder b = new StringBuilder();


		
		int i,s;
		i = 0;

		while(true){
			i++;
			s = scan.nextInt();
			//s = Integer.parseInt(br.readLine());
			if(s == 0){break;}
			
			//str = str+ "Case " + Integer.toString(i) + ": " + str + "\n";
			
			b.append("Case ");
			b.append(Integer.toString(i));
			b.append(": ");
			b.append(Integer.toString(s));
			b.append("\n");
			
			
			
		}

		System.out.print(new String(b));

	}
} public class Main {
	public static void main(String args[]) throws IOException {
		//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Scanner scan = new Scanner(System.in);
		StringBuilder b = new StringBuilder();


		
		int i,s;
		i = 0;

		while(true){
			i++;
			s = scan.nextInt();
			//s = Integer.parseInt(br.readLine());
			if(s == 0){break;}
			
			//str = str+ "Case " + Integer.toString(i) + ": " + str + "\n";
			
			b.append("Case ");
			b.append(Integer.toString(i));
			b.append(": ");
			b.append(Integer.toString(s));
			b.append("\n");
			
			
			
		}

		System.out.print(new String(b));

	}
} Main

import java.io.*;
import java.util.*;

public class Main {
	public static void main(String args[]) throws IOException {
		//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Scanner scan = new Scanner(System.in);
		StringBuilder b = new StringBuilder();


		
		int i,s;
		i = 0;

		while(true){
			i++;
			s = scan.nextInt();
			//s = Integer.parseInt(br.readLine());
			if(s == 0){break;}
			
			//str = str+ "Case " + Integer.toString(i) + ": " + str + "\n";
			
			b.append("Case ");
			b.append(Integer.toString(i));
			b.append(": ");
			b.append(Integer.toString(s));
			b.append("\n");
			
			
			
		}

		System.out.print(new String(b));

	}
}