import java.util.Scanner;
class Main{
    public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	int count = 0;
	int i=sc.nextInt();
	while(i!=0){
	    count++;
	    System.out.println("Case "+count+": "+i);
	    i=sc.nextInt();
	}
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	int count = 0;
	int i=sc.nextInt();
	while(i!=0){
	    count++;
	    System.out.println("Case "+count+": "+i);
	    i=sc.nextInt();
	}
    }
} Main public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	int count = 0;
	int i=sc.nextInt();
	while(i!=0){
	    count++;
	    System.out.println("Case "+count+": "+i);
	    i=sc.nextInt();
	}
    } main {
	final Scanner sc=new Scanner(System.in);
	int count = 0;
	int i=sc.nextInt();
	while(i!=0){
	    count++;
	    System.out.println("Case "+count+": "+i);
	    i=sc.nextInt();
	}
    } final Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int count = 0; count 0 int i=sc.nextInt(); i sc.nextInt() sc.nextInt sc while(i!=0){
	    count++;
	    System.out.println("Case "+count+": "+i);
	    i=sc.nextInt();
	} i!=0 i 0 {
	    count++;
	    System.out.println("Case "+count+": "+i);
	    i=sc.nextInt();
	} count++ count System.out.println("Case "+count+": "+i) System.out.println System.out System System.out "Case "+count+": "+i ": " "Case "+count+": "+i "Case " count ": " i i=sc.nextInt() i sc.nextInt() sc.nextInt sc String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	int count = 0;
	int i=sc.nextInt();
	while(i!=0){
	    count++;
	    System.out.println("Case "+count+": "+i);
	    i=sc.nextInt();
	}
    }
}