import java.util.Scanner;

public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int num = 1;
	    while(true){
	    	int n = Integer.parseInt(std.next());
	    	if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	}
	    }
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int num = 1;
	    while(true){
	    	int n = Integer.parseInt(std.next());
	    	if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	}
	    }
	}
} Main public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int num = 1;
	    while(true){
	    	int n = Integer.parseInt(std.next());
	    	if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	}
	    }
	} main {
	    Scanner std = new Scanner(System.in);
	    int num = 1;
	    while(true){
	    	int n = Integer.parseInt(std.next());
	    	if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	}
	    }
	} Scanner std = new Scanner(System.in); std new Scanner(System.in) int num = 1; num 1 while(true){
	    	int n = Integer.parseInt(std.next());
	    	if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	}
	    } true {
	    	int n = Integer.parseInt(std.next());
	    	if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	}
	    } int n = Integer.parseInt(std.next()); n Integer.parseInt(std.next()) Integer.parseInt Integer std.next() std.next std if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	} n!=0 n 0 {
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	} System.out.println("Case "+num+": "+n) System.out.println System.out System System.out "Case "+num+": "+n ": " "Case "+num+": "+n "Case " num ": " n num++ num {
	    		break;
	    	} break; String[] args args public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int num = 1;
	    while(true){
	    	int n = Integer.parseInt(std.next());
	    	if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	}
	    }
	}
} public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int num = 1;
	    while(true){
	    	int n = Integer.parseInt(std.next());
	    	if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	}
	    }
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int num = 1;
	    while(true){
	    	int n = Integer.parseInt(std.next());
	    	if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	}
	    }
	}
}