import java.util.Scanner;

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

public class Main{
    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
        int i =1;
        int a = stdin.nextInt();
	while(a!=0){
	    System.out.println("Case "+i+":"+" "+a);
	    i++;
	    a = stdin.nextInt();
	    }
    }
}