import java.io.File;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
import java.util.Scanner;
 
/*
 * メモ
 * Scanner:nextは空白か改行までの単語
 * String[][] c = new String[h][w];
 * TemplateMain,"template_input.txt"
 * 0.5 == 1.0/2
 * Integer.valueOf(char)はダメ、(String)
 */
 
public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int i = 1;
		while(true){
			int in = sc.nextInt();
			if(in == 0) break;
			System.out.println("Case " + i + ": " + in);
			i++;
		}
	}
} import java.io.File; File java.io import java.io.IOException; IOException java.io import java.util.ArrayDeque; ArrayDeque java.util import java.util.ArrayList; ArrayList java.util import java.util.Deque; Deque java.util import java.util.Scanner; Scanner java.util public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int i = 1;
		while(true){
			int in = sc.nextInt();
			if(in == 0) break;
			System.out.println("Case " + i + ": " + in);
			i++;
		}
	}
} Main public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int i = 1;
		while(true){
			int in = sc.nextInt();
			if(in == 0) break;
			System.out.println("Case " + i + ": " + in);
			i++;
		}
	} main {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int i = 1;
		while(true){
			int in = sc.nextInt();
			if(in == 0) break;
			System.out.println("Case " + i + ": " + in);
			i++;
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = 1; i 1 while(true){
			int in = sc.nextInt();
			if(in == 0) break;
			System.out.println("Case " + i + ": " + in);
			i++;
		} true {
			int in = sc.nextInt();
			if(in == 0) break;
			System.out.println("Case " + i + ": " + in);
			i++;
		} int in = sc.nextInt(); in sc.nextInt() sc.nextInt sc if(in == 0) break; in == 0 in 0 break; System.out.println("Case " + i + ": " + in) System.out.println System.out System System.out "Case " + i + ": " + in ": " "Case " + i + ": " + in "Case " i ": " in i++ i String[] args args public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int i = 1;
		while(true){
			int in = sc.nextInt();
			if(in == 0) break;
			System.out.println("Case " + i + ": " + in);
			i++;
		}
	}
} public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int i = 1;
		while(true){
			int in = sc.nextInt();
			if(in == 0) break;
			System.out.println("Case " + i + ": " + in);
			i++;
		}
	}
} Main
import java.io.File;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
import java.util.Scanner;
 
/*
 * メモ
 * Scanner:nextは空白か改行までの単語
 * String[][] c = new String[h][w];
 * TemplateMain,"template_input.txt"
 * 0.5 == 1.0/2
 * Integer.valueOf(char)はダメ、(String)
 */
 
public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int i = 1;
		while(true){
			int in = sc.nextInt();
			if(in == 0) break;
			System.out.println("Case " + i + ": " + in);
			i++;
		}
	}
}
