import java.util.Scanner;
import java.util.Iterator;
public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int line=0;
		for(int i = 1;input.hasNext();i++){
			line = input.nextInt();
			if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			}
		}
	}
} import java.util.Scanner; Scanner java.util import java.util.Iterator; Iterator java.util public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int line=0;
		for(int i = 1;input.hasNext();i++){
			line = input.nextInt();
			if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			}
		}
	}
} Main public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int line=0;
		for(int i = 1;input.hasNext();i++){
			line = input.nextInt();
			if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			}
		}
	} main {
		Scanner input = new Scanner(System.in);
		int line=0;
		for(int i = 1;input.hasNext();i++){
			line = input.nextInt();
			if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			}
		}
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int line=0; line 0 for(int i = 1;input.hasNext();i++){
			line = input.nextInt();
			if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			}
		} int i = 1; int i = 1; i 1 input.hasNext() input.hasNext input i++ i++ i {
			line = input.nextInt();
			if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			}
		} {
			line = input.nextInt();
			if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			}
		} line = input.nextInt() line input.nextInt() input.nextInt input if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			} line!=0 line 0 {
				System.out.println("Case "+i+": "+line);
			} System.out.println("Case "+i+": "+line) System.out.println System.out System System.out "Case "+i+": "+line ": " "Case "+i+": "+line "Case " i ": " line {
				break;
			} break; String[] args args public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int line=0;
		for(int i = 1;input.hasNext();i++){
			line = input.nextInt();
			if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			}
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int line=0;
		for(int i = 1;input.hasNext();i++){
			line = input.nextInt();
			if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			}
		}
	}
} Main
import java.util.Scanner;
import java.util.Iterator;
public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int line=0;
		for(int i = 1;input.hasNext();i++){
			line = input.nextInt();
			if(line!=0){
				System.out.println("Case "+i+": "+line);
			}else{
				break;
			}
		}
	}
}